Asterix with Conditional Formating

adamsm

Active Member
Joined
Apr 20, 2010
Messages
444
Hi anyone,

Here's what I want to get help with.

In the active sheet's cell "K14" of I'm the range 4-10.

How could I format the Cell "J14" so that if the user writes a value other than that is withing the range; an * appears near the value.

Any help on this would be kindly appreciated.

Thanks in advance.
 

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.
Hi,

I'm not sure I fully understand what you mean, but for example if your cells look like this (note, the * hasn't been typed into J14, it appears as a result of the formatting described below):

Sheet1
JK
142*4-10

<tbody>
</tbody>
Excel 2010

Then the following steps should work:

  • Select J14
  • Apply the following formula using Conditional Formatting:
    =IF(ISNUMBER(J14),J14<>MEDIAN(J14,LEFT(K14,FIND("-",K14)-1),SUBSTITUTE(K14,LEFT(K14,FIND("-",K14)),"")),TRUE)
  • Set the format to something like the following or whatever other system you like:
    0"*";-0"*";0"*";@"*"
Note: I don't think this approach is a good idea however. It would be much easier to have the range is separate cells (i.e. the 4 and 10), and apply a colour for example, rather than using the *.
 
Upvote 0
I would be happy if you could give me an example of how to work out your idea of coloring the cell.

Thanks in advance.
 
Upvote 0

Forum statistics

Threads
1,211,679
Messages
6,103,244
Members
447,849
Latest member
4chase

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