Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using Office 2007 with Windows XP;
I need a formula that can look across several columns and return the value of the header row for the column that does not contain a zero value. For example (hopefully this will line up): A F G H R1 MISC1 MISC2 MISC3 R3 {formula} 0 25.25 0 If the example above, the formula in A3 should return: MISC2 Since that is the column heading for the column that doesn't have a zero balance. I hope this makes sense. Thanks much for your assistance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
If you saying only one of these columns will have a value then this will do it =LOOKUP(2,1/(F2:I2<0),F1:I1) If there is more than one column with a value it will return the last. Mike "XP" wrote: Using Office 2007 with Windows XP; I need a formula that can look across several columns and return the value of the header row for the column that does not contain a zero value. For example (hopefully this will line up): A F G H R1 MISC1 MISC2 MISC3 R3 {formula} 0 25.25 0 If the example above, the formula in A3 should return: MISC2 Since that is the column heading for the column that doesn't have a zero balance. I hope this makes sense. Thanks much for your assistance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Works exactly as I needed! Thanks! "Mike H" wrote: Hi, If you saying only one of these columns will have a value then this will do it =LOOKUP(2,1/(F2:I2<0),F1:I1) If there is more than one column with a value it will return the last. Mike "XP" wrote: Using Office 2007 with Windows XP; I need a formula that can look across several columns and return the value of the header row for the column that does not contain a zero value. For example (hopefully this will line up): A F G H R1 MISC1 MISC2 MISC3 R3 {formula} 0 25.25 0 If the example above, the formula in A3 should return: MISC2 Since that is the column heading for the column that doesn't have a zero balance. I hope this makes sense. Thanks much for your assistance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return column header based on last value in row | Excel Worksheet Functions | |||
Return column header | Excel Discussion (Misc queries) | |||
How to return a Column Header | Excel Discussion (Misc queries) | |||
Return column number from column header text | Excel Discussion (Misc queries) | |||
Return Column header, if row value is > X | Excel Discussion (Misc queries) |