A formula for text

Xzebetz

New Member
Joined
Nov 23, 2023
Messages
1
Office Version
  1. 365
Hi,
I have been trying to solve a problem. I'll try to explain by example:

I have a sheet where:

Cells F5:Q5 can contain several text info. They can either contain offline, online, error. I need to return an output in call E5 based on what F5:Q5 contains.

So, if:
All cells contain online, then return online
All cell contain offline, then return offline

But here is the tricky part:

If not all cells contain online, then return X (12 cells, if 11 or more contain any other text than online, return an other value then online).

Hope it makes sense.

Thank you.
 

Attachments

  • excel-example.JPG
    excel-example.JPG
    42.7 KB · Views: 5

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
=IF(COUNTIF(F5:Q5,"Online")=12,"Online",IF(COUNTIF(F5:Q5,"Offline")=12,"Offline","X"))

If all cells in the range F5:Q5 equal Online, then return Online
If all cells in the range F5:Q5 equal Offline, then return Offline
otherwise return X
 
Upvote 0

Forum statistics

Threads
1,215,315
Messages
6,124,213
Members
449,148
Latest member
sweetkt327

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