Determine if Range contains multiple values, a single value or blank

kyleno

Board Regular
Joined
Jun 9, 2014
Messages
61
I have searched for this question but have not found an answer that works for my scenario.

I have range J2:S2 that have flags (I'm just using the letter "x"). I need my formula to tell me if the range contains multiple x's (Multi), a single x (Single) or blank (blank).

I was able to successfully create each formula individually but not one that combines all conditions

=IF(COUNTIF(J630:S630,"x")>2,"Multi")
=IF(COUNTIF(J629:S629,"x")=1,"Single")
=IF(COUNTIF(J628:S628,"x")<1,"(blank)")

I can't seem to figure out the remainder of the nested formula which identifies a single x or blank cell and marks it as such.

I tried this but it doesn't work:
=IF(COUNTIF(J630:S630,"x")>2,"Multi"), IF(COUNTIF(J629:S629,"x")=1,"Single"), IF(COUNTIF(J628:S628,"x")<1,"(blank)"))))))

Please and thank you.
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try this:

=IF(COUNTIF(J630:S630,"x")>1,"Multi",IF(COUNTIF(J630:S630,"x")=1,"Single","Blank")))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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