Multiple IF values for cell

bumfart66

New Member
Joined
Aug 23, 2017
Messages
21
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
=IF(C9="Read Only","n/a",IF(C9="Quarter 4",SUM(D3,0)))

C9 can be Read Only and Quarter 1-4, This checks for Read Only and Quarter 4, how do i get it to check for
Quarter 3 2 and 1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
if C9= "red" you will get an error message

but to add the other quarters

=IF(C9="Read Only","n/a",IF(C9="Quarter 4",SUM(D3,0),if(c9="Quarter 3",sum(),ifc9="Quarter 2",sum(),sum())),"C9 is none of these")
 
Upvote 0
if C9= "red" you will get an error message

but to add the other quarters

=IF(C9="Read Only","n/a",IF(C9="Quarter 4",SUM(D3,0),if(c9="Quarter 3",sum(),ifc9="Quarter 2",sum(),sum())),"C9 is none of these")

Thanks , not pretty but used this

=IF(C10="Read Only","n/a",IF(C10="Quarter 4",SUM(D5,0),IF(C10="Quarter 3",SUM(D5,0),IF(C10="Quarter 2",SUM(D5,0),IF(C10="Quarter 1",SUM(D5,0))))))
 
Upvote 0
1. you don't need to use SUM to refer to 1 cell, just reference that cell.
2. If you are looking for any 1 of 4 Qtr's, then why even test for that? You can only have 1, 2, 3 or 4 Qtr?
3. try this....
=IF(C10="Read Only","n/a",D5)
 
Last edited:
Upvote 0
1. you don't need to use SUM to refer to 1 cell, just reference that cell.
2. If you are looking for any 1 of 4 Qtr's, then why even test for that? You can only have 1, 2, 3 or 4 Qtr?
3. try this....
=IF(C10="Read Only","n/a",D5)


Thanks
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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