Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi
I'm trying to create an if statement that allows me to bring across data from another worksheet within the same book. However, when i create the 'true' statement and try to add the cell reference from the previous worksheet the statement takes the worksheet & cell name as the answer... so so when in worksheet 2 =IF("worksheetA'!L3="Yes","'WorksheetA'!C3'","0") then the 'True' answer goes into the cell as 'WorksheetA!C3' Whereas i actually want what the 'text' is in the cell in that worksheet as the answer. are you able to have a cell as an answer to an 'IF' statement or will that just not work? Hope that makes sense.... |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF("worksheetA'!L3="Yes","'WorksheetA'!C3'","0 ")
You have too many quotes. Try it like this: =IF(WorksheetA!L3="Yes",WorksheetA!C3,0) General tip about quotes: quote TEXT constants like the "Yes" in the formula. Do not quote numbers like the 0 in the formula. If the sheet name contains spaces or numbers then you need to single quote the sheet name: =IF('Work sheetA'!L3="Yes",'Work sheetA'!C3,0) -- Biff Microsoft Excel MVP "Tweety" wrote in message ... hi I'm trying to create an if statement that allows me to bring across data from another worksheet within the same book. However, when i create the 'true' statement and try to add the cell reference from the previous worksheet the statement takes the worksheet & cell name as the answer... so so when in worksheet 2 =IF("worksheetA'!L3="Yes","'WorksheetA'!C3'","0") then the 'True' answer goes into the cell as 'WorksheetA!C3' Whereas i actually want what the 'text' is in the cell in that worksheet as the answer. are you able to have a cell as an answer to an 'IF' statement or will that just not work? Hope that makes sense.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert relative cell references to absolute cell references via amacro? | Excel Discussion (Misc queries) | |||
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell | Excel Worksheet Functions | |||
auto populate cell based on previous cell drop down list selectio. | Excel Discussion (Misc queries) | |||
How to rename references from range names to cell references | Excel Discussion (Misc queries) | |||
Select cell, Copy it, Paste it, Return to Previous cell | Excel Discussion (Misc queries) |