I have sheet1 and sheet2.
Sheet1 has "today()" and "today()+1" as B2 and C2 respectively. B3 and C3 have some numerical values referenced from sheet2.
Sheet2 has B column as list of dates and C column has list of values.
Values of Sheet2 has to be reflected in sheet1 only for the dates of "today()" and "today+1". May I know, how can we apply it?
I tried to apply by referencing cells. But, I am unable to reference based on the date columns dynamically.
VLOOKUP(B2,Sheet2!$B$2:$C$13,2,False)
Try this formula in B3 and C3 of sheet1. Change B2 in the formula to C2 for C3 cell.
Related
I have two Excel sheets and I want to fetch data from the particular cell number from sheet1 to sheet2.
In sheet2 I have two columns: the first column contain the cell number of sheet1; and using that cell number I want to fetch that data into the adjacent cell.
Example:
Sheet1 : A15 contains "Hello"
Sheet2 : column A contains cell name and number
Worked example: in sheet2 cell A5 contains A15 so in B5 I want "Hello" (i.e. the data in A15 on sheet1)
INDIRECT
In Sheet2, cell B5 use the formula:
=INDIRECT("Sheet1!"&A5)
INDIRECT Links
Office
Support
ExcelJet
Contextures
I have two sheets. I am matching sheet1 A2 value with sheet2 A2 to get Sheet1 C2 Value in sheet2 C2.
In Sheet1, if the number (in Column A) is repeating then it will have
(blank) and AW. If the number is not repeating then it will have only
(blank).
In Sheet2, if the number (in Column A) is repeating then it will have
(blank) and AW. If the number is not repeating then it will have
(blank) or AW. Actually (blank) = BY
In sheet1 and sheet2, Repeating values are always adjacent to each
other.
Conditions are:
In Sheet1, A2 not repeating & B2 = (blank) then Copy the value and paste to sheet2 in Column C. It could be either BY and AW in Sheet B2. So, paste in both B2 & B3.
For Eg: In sheet1 A4 &A5 are equal; B4 = (blank); B5 = AW. So take
C4 value and paste in Sheet2 both C4 AND C5.(Or the cell where it gets matched)
For Eg: In sheet1 A16; B16 = (blank). But In sheet2; B16 = AW. So
take C16 value and paste in Sheet2 C16.(Or the cells where it gets matched). If both the values are (blank), then no problem.
In Sheet1, A2 repeating & B2 = (blank), A2 = A3, B3 = AW then Copy the value and paste to sheet2 in Column C2 and C3.
For Eg: In sheet1 A4 &A5 are equal; B4 = (blank); B5 = AW. So take
C4 & C5 value and paste in Sheet2 both C4 AND C5.(Or the cells where it gets matched).
Help me. How to change my formula
=IFERROR(INDEX(Sheet1!$C$2:$C$4000; MATCH(1; (Sheet1!$A$2:$A$3000=Sheet2!$A2)*(Sheet1!$B$2:$B$3000=Sheet2!$B2);0));"")
=IFERROR(INDEX(Sheet1!$C$2:$C$4000;MATCH(Sheet2!A2;Sheet1!$A$6:$A$3000;0));"")
place the following in C2 and copy down:
=if(OR(B2="BY",SHEET1!C2<>""),SHEET1!C2,SHEET1!C1)
you will then want to go back and add a special case for your first row of data since you do not want to copy information from C1.
Alternatively you could add that as an option to your formula, but it MAY be a wasted bit of effort in all remaining rows.
EDIT:
In the case where the pairs of numbers are out of sequence you could use:
=IFERROR(IF(OR(B2="BY",INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0)+COUNTIF(A$2:A2,A2)-1)<>""),INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0)+COUNTIF(A$2:A2,A2)-1),INDEX(Sheet1!C:C,MATCH(A2,Sheet1!A:A,0)+COUNTIF(A$2:A2,A2)-2)),"")
I need some help for the below scenario,
Sheet1 A2 has a date
Sheet2 and Sheet3 has dates in column A and numbers in column B
example as below,
I want to get the sum value from Sheet2 & Sheet3 B column for all the values in Sheet1 A2 if finds in Sheet2 & Sheet3 A.
Below is my formula which I can get the sum from Sheet2 but not able to do with both sheet2 and sheet3.
{=SUM((Sheet2!$B$2:$B$65500)*(Sheet2!$A$2:$A$65500='Sheet1'!A2))}
Please help in formula or vba, thanks
Can't you just add the two?
In B2 of sheet 1
=SUMIF(Sheet2!A:A,A2,Sheet2!B:B)+SUMIF(Sheet3!A:A,A2,Sheet3!B:B)
I have data in A1 in 'sheet1'.
I have data in A1 and C1 on 'sheet2'.
The result and formula will be in cell B1 in 'sheet1'.
I need the formula in cell B1 on 'sheet1' to match up A1 (sheet1) to A1 on sheet2 (that's the easy bit! I can do that no problems with the lookup and reference tab) but instead I want the return value to match up A1 on sheet2 but return the value from C1 on sheet2 instead.
I can't do this, please help?
Perhaps =VLOOKUP(A1,Sheet2!A:C,3,FALSE)
I'm having multiple sheets in an excel file
sheet1 contains some data from A1 to A100
sheet2 in this sheet row1 contains the data with numeric value
in sheet2 if A1 contains the 0 A3 should be the value of A1 of sheet1
in sheet2 if A1 contains the 30 A3 should be the value of A1+30 that is A31 of sheet1
Any idea how to get the described behavior?
It sounds like you're looking for something involving INDIRECT. Not sure what your data looks like, but from what it sounds like, you would want to put a formula like this in A3 in Sheet2:
=INDIRECT("Sheet1!A" & A1 + 1)
That will get the value in A1, add 1 (0->1, 30->31) and then concatenate it with the Sheet1!A string, giving you a reference to a cell on the first sheet. Using INDIRECT then returns the value at that cell.