3 Way Argument

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a 3 way argument that i need 3 different outcomes

IF Q146 =0 i need a "" returned
IF Q146 >0 i need the contents of cell Q146 to be shown
IF Q147 ="" then i need "-" shown

Thanks
 
Sorry Rick, maybe one more try here as i am not getting my intended result

Lets try

IF everywhere in H15:H138 shows "" then return ""
IF Q146 shows 0 then return "-"
IF Q146 shows >0 then return Q146

Many thanks for all your help
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
H15:H138... where did that come from? A suggestion for future questions you may ask... do not try to simplify them for us... all that will get you are solutions for a question you do not actually care about and, as you can see, they will not always be easily modifiable by you for your actual setup. See if this formula works...

=IF(COUNTBLANK(H15:H138)=124,"",IF(Q146,Q146,"-"))
 
Upvote 0
Apologies Rick, this almost works, but doesn't show Q146 if its value is >0

Thanks for all your help
 
Upvote 0
Apologies Rick, this almost works, but doesn't show Q146 if its value is >0
Edit: Sorted
Just for clarity sake, I tested the formula before I posted it and it worked as it was supposed to; that is, the value of Q146 was displayed when that cell contained a value greater than 0. I'm assuming the "Sorted" comment refered to a typo or something on your end.
 
Upvote 0
Hi Rick, the formula was perfect, i just changed it from

=IF(COUNTBLANK(H15:H138)=124,"",IF(Q146,Q146,"-"))

changed it to

=IF(COUNTBLANK(H15:H138)=124,"",IF(Q146=0,"-",Q146))

Works a dream!

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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