Excel formula needed

captainron

New Member
Joined
Mar 13, 2011
Messages
6
how do i write this formula:
If any cell from B3:G17 = B1 then i want that cell that equals B1 to change to a selected colour, lets say RED?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You are looking for conditional formatting.

Select your B3:G17 Range,

Go to Conditional Formating > Equal to
or custom Formual
Formula =$B$1

Pick a red format of your liking,
Ok and Apply it to this range.

jc
 
Upvote 0
Ok thanks.

Just one more question, say i have 6 cells, and if any number that is in the range of cells B3:G17 is equal to one of the six cells, then it changes colour.
 
Upvote 0
excel 2003
Ok, try this...

Select the *entire* range B3:G17 starting from cell B3. Cell B3 will be the
active cell. The active cell is the one cell in the selected range that is not shaded. The formula will be relative to the active cell.

• Goto the menu Format>Conditional Formatting
• Select the Formula Is option
• Enter this formula in the box on the right:
• =AND(B3<>"",B3=$B$1)
• Click the Format button
• Select the desired style(s)
• OK out
 
Upvote 0
Ok thanks.

Just one more question, say i have 6 cells, and if any number that is in the range of cells B3:G17 is equal to one of the six cells, then it changes colour.
Sounds like you want to check your lottery numbers!

What is the range of 6 cells that hold the numbers?
 
Upvote 0
that formula works when i put in one number in cell B1, but I want to be able to put numbers in Cells C1,D1,E1,F1,G1 and highlight red the numbers in B3:G17

right now nothing happens when i enter numbers in those cells
 
Upvote 0
that formula works when i put in one number in cell B1, but I want to be able to put numbers in Cells C1,D1,E1,F1,G1 and highlight red the numbers in B3:G17

right now nothing happens when i enter numbers in those cells
Try this...

Conditional Formatting
Formula Is: =OR(B3=$B$1:$G$1)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

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