IF function help!

nholagi

New Member
Joined
Apr 16, 2015
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi! I couldn't figure out how to write an IF function (or any function) that can show result like in the "outcome" column.

Basically if a row has 0 across then it should say "not in range", if there is a value in that row then return that column header name, if there are more than 2 value return then it should say "Multiple"
any thought?
thanks

1661983313121.png
 

Attachments

  • 1661983049943.png
    1661983049943.png
    4.2 KB · Views: 2

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
It would help if you updated your profile to indicate what version of Excel you are running.

Here's one way.

Book8
ABCDEFG
1ABCDEFoutcome
2100000A
3000000Not in range
4010010Multiple
5000100D
Sheet2
Cell Formulas
RangeFormula
G2:G5G2=IF(0=SUM(A2:F2),"Not in range",IF(1<SUM(A2:F2),"Multiple",INDEX($A$1:$F$1,MATCH(TRUE,INDEX(A2:F2<>0,),0))))
 
Upvote 0
@nholagi What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
@nholagi What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

thank you! i just did
 
Upvote 0
Thanks for that.
As you have 365, another option
Fluff.xlsm
ABCDEFG
1ABCDEFoutcome
2100000A
3000000Not in Range
4010010Multiple
5000100D
Report
Cell Formulas
RangeFormula
G2:G5G2=LET(f,FILTER($A$1:$F$1,A2:F2=1,"Not in Range"),IF(COLUMNS(f)>1,"Multiple",f))
 
Upvote 0
Solution
It would help if you updated your profile to indicate what version of Excel you are running.

Here's one way.

Book8
ABCDEFG
1ABCDEFoutcome
2100000A
3000000Not in range
4010010Multiple
5000100D
Sheet2
Cell Formulas
RangeFormula
G2:G5G2=IF(0=SUM(A2:F2),"Not in range",IF(1<SUM(A2:F2),"Multiple",INDEX($A$1:$F$1,MATCH(TRUE,INDEX(A2:F2<>0,),0))))
thank you!
 
Upvote 0
Thanks for that.
As you have 365, another option
Fluff.xlsm
ABCDEFG
1ABCDEFoutcome
2100000A
3000000Not in Range
4010010Multiple
5000100D
Report
Cell Formulas
RangeFormula
G2:G5G2=LET(f,FILTER($A$1:$F$1,A2:F2=1,"Not in Range"),IF(COLUMNS(f)>1,"Multiple",f))
this work! thanks. but i never use this function before, do you mind explain how this work so i understand it for future uses?
 
Upvote 0
Which function are you talking about?
 
Upvote 0
There are a number of functions in that formula, which one are you talking about.
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,850
Members
449,194
Latest member
HellScout

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