Conditional Format

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am preparing a textile worksheet where i have to enter the required and achieved bed sheet sizes.

For Example

Cell A1 = 140 x 200 ( This is the required bed sheet size ) Width x Length
Cell A2 = 141 x 200 ( This is the achieved bed sheet size) Width x Length

the achieved size differs from the required size by 1CM

Is there any formula where it can change the color of only that part of cell A2 which does not match with cell A1. I mean format only the part of the string which does not match and not the entire cell

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
In A1 use formula:
Code:
=200*(139+ROW())
Then drag down

I do not believe there is a formula that can auto-detect matching parts to keep consistent, also is there a difference between:
=200*140 and
=140*200 ?

You could put 1 part of the formula into column A, the other in column B and then use column C to return the product if the consistent term is in column (say) B?
 
Last edited:
Upvote 0
Thanks Jack for the reply,

i cannot enter a formula as values of cell A1 & B1 both are manually entered.
what i want is when cell B1 differs from cell A1 then the part of the cell B1 which differs from the part of cell A1 should be formatted like Red Colour

Code:
[COLOR=#333333]I do not believe there is a formula that can auto-detect matching parts to keep consistent, also is there a difference between:[/COLOR]
[COLOR=#333333]=200*140 and[/COLOR]
[COLOR=#333333]=140*200 ?[/COLOR]

Yes there is difference coz its written as Width x Length and this is constant. if we write 140 x 200 to 200 x 140 then it should be treated different.
 
Upvote 0
You cannot achieve this with a formula/conditional formatting, but you can (almost certainly) achieve it with vba. If you are interested in that course, please answer the following questions.

1. Are there more cells than just A1 and A2? If so, can you explain what cells we are dealing with and which ones should be compared to each other?

2. Are the cells always just 2 numbers separated by " x "? If not, please give some more representative samples and the expected results.
 
Last edited:
Upvote 0
Sorry for a late late reply Peter.

what i have done is i have split the data to few cells. than i applied conditional format to make it red.

ya sure i will let u know if i need a vba.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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