Highlight a number cell based on the text contents of another cell / cells

looper

New Member
Joined
Mar 26, 2014
Messages
13
I'm not an excel expert, just a mere daily user, but i decided to take the next step and learn how to do more with my data.

I've searched a lot before deciding to register and post here, but i didn't really find the information suitable for me.

Here's what i want to accomplish:

I want to be able to highlight a number cell if it remains empty after a certain text is entered in the ones from left and/or right.

So:

In the E and G column i have some text info, in F there should be a number, but only if a certain text is entered in E and/or G.

Sometimes, i forget to enter that number and i want that cell to highlight.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
What is that 'certain' text which would be entered in column E and G ?
For column F, is there a fixed number or you just want to highlight and put any number of your choice ?


Regards,
DILIPandey
 
Upvote 0
There are some fixed words that i want to follow, one of them is "tir", other one is "cisterna".

Column F should be filled with any number from 1 to 16 or multiple ones, ex: "1" or "1, 2-14", so no, there's no fixed number.
 
Upvote 0
Okay.. so can we say -> If column E is "tir" and column G is "cisterna" then column F should show "1".

Can you provide this kind of mapping else how Excel would understand what you want to show on what condition ?


Regards,
DILIPandey
 
Upvote 0
Nop, let me be more specific:

Let's leave out the E column, i don't think we'll need it eventually. The words "tir" and "cisterna" are just a part of the text entered in G, but they won't be entered on every row, just from time to time.

So, when Excel sees one of these words, as part of a phrase, in the G column, it should check to see is F is completed, if not, it should highlight it.
 
Upvote 0
Okay... for that specific case, use below formula in conditional formatting in, let say, cell F4:-

=AND($F4="",SEARCH("tir",$G4))

and format fill as yellow color.

Now F4 will be highlighted if G4 contains "tir" anywhere as a part of entered text string and F4 itself is left blank.

This is what we have done for a specific 'tir' - but you must be having more requirements related with other such strings like "cisterna" etc and that is what I asked in post $4 OR you want same thing to happen with all of such strings ? Thanks.


Regards,
DILIPandey
 
Upvote 0
I have changed the cell number from 4 to 77, where i am right now, but after inserting the formula in the "Format values where formula is true" window, i get an error saying that the formula is incorrect.

My question is, can the formula be applied in cells where there's no text? I want it to highlight the following entries, not the ones already there.

In response to the question from post #4: for all the specific words like "tir" and "cisterna", i want the same thing to happen, highlight the F cell if its left blank, with the same formating rules.
 
Upvote 0
Not sure if you changed 4 to 77 for both the cells i.e., F and G.
Okay.. lets make it simple and straight forward:-

You want to highlight column F, IF column F is blank AND column G contains any one of the following as a part of text :-
1) tir
2) cisterna
3) ..
4) ..

complete the list and let me know.. thanks.


Regards,
DILIPandey
 
Upvote 0
Ok, let's go with these words for now:

1) tir
2) cisterna
3) cantar
4) descarcare
5) usa
6) barca

But, here's another idea: is it possible to not highlight the F column when just 2 words are in the G column and just highlight it if these 2 words ("verificare" "rond") are not there?

This way, we'll minimize the words to check list, because these are not fixed and may vary from time to time.
 
Upvote 0
Okay.. I guess another idea is good.
Use below formula in the conditional formatting for cell F1 and highlight the format as yellow. Now copy down the conditional formatting.


Regards,
DILIPandey
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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