formula issue?

RUSSELLCLEWS

New Member
Joined
Jan 29, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi there. Please can anyone help? Im trying to display the work "Blue" in a cell if two other cells say the word "Standard" I have this formula but cant seem to get it right?

=IF((AND(ISNUMBER('SEARCH'("BLUE",H8 "BLUE",I8)),"STANDARD","")

Can anyone correct me on this?

Thanks in advance..
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Must be array confirmed with Ctrl Shift Enter if you are using anything other than office 365 / excel 2022.
Excel Formula:
=IF(AND(ISNUMBER('SEARCH'("BLUE",H8:I8))),"STANDARD","")
 
Upvote 0
Must be array confirmed with Ctrl Shift Enter if you are using anything other than office 365 / excel 2022.
Excel Formula:
=IF(AND(ISNUMBER('SEARCH'("BLUE",H8:I8))),"STANDARD","")
Thanks for the replay Jason but it doesnt seem to work. when I put the formula in, it doesnt highlight the cells or display anything after. I use the following forumla for single cells and this works:

=IF(ISNUMBER(SEARCH("BLUE",D8)),"STANDARD","")

How can I select two cells with this formula?
 
Upvote 0
Hi
Try
VBA Code:
=IF(AND(ISNUMBER(SEARCH("BLUE",H8)),ISNUMBER(SEARCH("BLUE",I8))),"STANDARD","")
 
Upvote 0
How about:
Excel Formula:
=IF(ISNUMBER(SEARCH("*BLUE*|*BLUE*",H8&"|"&I8)),"STANDARD","")
 
Upvote 0
GREAT! IT WORKS, THANK YOU JASON.
I didn't post that reply, someone else did.

The formula that I posted does work, when I copied yours from post 1 to save typing I missed that you had some single inverted commas that don't belong in the formula which would be the reason for it not working.
Excel Formula:
=IF(AND(ISNUMBER(SEARCH("BLUE",H8:I8))),"STANDARD","")
Friendly tip, leave the caps lock off when you type your replies ;)
 
Upvote 0
Hi
Try
VBA Code:
=IF(AND(ISNUMBER(SEARCH("BLUE",H8)),ISNUMBER(SEARCH("BLUE",I8))),"STANDARD","")
Hi Mohadin,

Please can you help with one more? Im trying to format a cell, for example

Cell A1 says: Ohlins" in the cell. I want writting in B1 to change colour to white. What rule can I use in conditional formatting?
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
Members
449,089
Latest member
Motoracer88

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