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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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
 
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,214,845
Messages
6,121,902
Members
449,053
Latest member
Guy Boot

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
Back
Top