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.
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 a spreadsheet with two worksheets, A & B.
I need a formula that will look at a value in cell B2 in worksheet A and return the value in cell F2 in worksheet A to cell C2 in worksheet B.
So. If the value in B2 is individual the formula will return the Value in F2, e.g., "Smith", to cell C2 in worksheet B.
How can I do that?
So, like this:
=IF('Sheet A'!B2="individual",'Sheet A'!F2,"Blank")
I am maintaining an excel sheet where Sheet1 A1 would be the name of people and B2 would be their contact number. All of the details are in sheet 2 row A and B.
So, what I want is if I put a valid name (i.e. should be in Sheet2 A) then it automatically finds the number of that name and adds in the second row. Is this possible? I have around 10-15 contacts there.
Assuming Sheet workers list is as follows:
then in Cell B2 of Sheet assignment received enter either of the following formulas
=VLOOKUP(A1,'workers list'!A2:B10,2,FALSE)
or
=INDEX('workers list'!B2:B10,MATCH(A1,'workers list'!A2:A10,0))
Change range as required.
Use this formula in sheet -1 B2 cell "=IF(A2="","",VLOOKUP(A2,Sheet2!$A:$B,2,0))"
and Dropdown this formula till you want
Sheet-2
Sheet-1
This might be confusing but I'll give this a go.
As in the title of this question, I need to link cells between two sheets. Seems simple enough, but I think in this case I need to include an IF function?
I want cell C2 in sheet 1 to display what is in cell B2 from sheet 2 IF cell A1 in sheet 1 is the same as cell B1.
In other words: I have 2 sheets, on the second page I have months in on row and in the row under I have values for those months. I want to be able to link sheet 1 and 2 so that if I select February in one cell in sheet 1, then the cell under February in sheet 2 (the value) is shown in another cell on sheet 1.
Help please?
I think the relationships are satisfied by:
=IF(A1='sheet 2'!B1,'sheet 2'!B2,"")
(in Sheet 1!C2) but have assumed that the result should be nothing if Sheet 1!A1 != Sheet 2!B2.
I think you might be looking for in cell C2 (if you are talking about A1 and B1 being from the same sheet like 1):
=IF(A1=B1,Sheet2!B2)
edit: can't read question, only works if A1 and B1 are on same sheet
If I am not misunderstanding your wish, there is the code below. Please insert it into cell C2 in Sheet1
=IF(A1=B1, Sheet2!B2, "")
But you did not provide what sheet of cell B1 in pharse
I want cell C2 in sheet 1 to display what is in cell B2 from sheet 2 IF cell A1 in sheet 1 is the same as cell B1
So, I assumed that it is the same as A1 that is Sheet1. If you want to compare with the cell B2 in another sheet please Insert Sheet2: before B1.
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)