IF Formulas

mwhit

Board Regular
Joined
Feb 20, 2006
Messages
163
Hello:

I am trying to use the if formula to retreive column headings for three different columns. Is it possible to use ONE formula to retreive a specified column name? For example: I have the following info in columns A-C:

Column A
1
Column B
2
Column C
0

I can write the if formula for info in column A but can i write it to look at all three columns???? Or is there a better way ?? Thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Can you explain a bit more?

Perhaps you need a formula like this

=INDEX(A$1:C$1,MATCH(2,A2:C2,0))

returns the column header from A1:C1 corresponding to the first instance of 2 in A2:C2
 

mwhit

Board Regular
Joined
Feb 20, 2006
Messages
163
Barry,

I am trying to determine the souce of my costs. The column headings are the source names. In column A, i will "Global" in column B i will have "Solomon" and in column C i will have "Master"

When i write the if formula: =if(a2>0,"Global", "No") it tells me if the source is from the "Global" table. However, to caputure all sources (other columns), i have to write one formula and do a sort and write another formula to capture the next source.... I just thought there was a more efficient way?

Does that make more sense?
 

Forum statistics

Threads
1,141,098
Messages
5,704,319
Members
421,338
Latest member
Pepess

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top