Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF function
I would like to replicate an "IF" function to encompass several rows of data.
For instance, I have the formula =IF(A1=B1,C1,C1), which I want the cell to show C1 whenever A1=B1 (Cell A1 is a validation list showing data from B1:B20). I want the "IF" formula to encompass all the rows of B data (B1:B20), so that if A is on B2, it should show C2, and if on B3, it should show C3, and so forth). Is it possible to create a formula within a cell A1 to do that? Many thanks. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF function
Assuming C data is from C1:C20
=INDEX($C$1:$C$20,MATCH($A$1,$B$1:$B$20,0)) BUT you can't have formula and value in the same cell i.e the above cannot be in A1 if understood you correctly. HTH "kivikatz" wrote: I would like to replicate an "IF" function to encompass several rows of data. For instance, I have the formula =IF(A1=B1,C1,C1), which I want the cell to show C1 whenever A1=B1 (Cell A1 is a validation list showing data from B1:B20). I want the "IF" formula to encompass all the rows of B data (B1:B20), so that if A is on B2, it should show C2, and if on B3, it should show C3, and so forth). Is it possible to create a formula within a cell A1 to do that? Many thanks. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF function
One way:
=IF(ISNA(MATCH(A1,B1:B20,FALSE)),"",VLOOKUP(A1,B1: C20,2,FALSE)) In article , kivikatz wrote: I would like to replicate an "IF" function to encompass several rows of data. For instance, I have the formula =IF(A1=B1,C1,C1), which I want the cell to show C1 whenever A1=B1 (Cell A1 is a validation list showing data from B1:B20). I want the "IF" formula to encompass all the rows of B data (B1:B20), so that if A is on B2, it should show C2, and if on B3, it should show C3, and so forth). Is it possible to create a formula within a cell A1 to do that? Many thanks. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF function
Thanks. That formula works out well.
"Toppers" wrote: Community Message Not Available |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
How do I nesting subtotal function within average function in Exc | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |