problems comparing cells in seperate columns

jeasterly

New Member
Joined
Oct 24, 2006
Messages
28
Hi all, I'm new to this but I can't find this specific question answered.

I have a spreadsheet that I am pulling into a workbook via macro that the data in Column B is the mfg cost : The data in Column C is the sales price.
I need the code to check if the value in C is 20% greater than the value in the corresponding B column. If it is NOT then shade the value in C yellow.

I can't use the conditional formatting since I am pulling the entire sheet in from an access query. Can anyone help. I am using Excel 2002.

Thanks so much!
 
Gosh yeah.. what flake I am...sorry. Yes, that does seem to work for me.. only one small thing.. the background is not colored.. any chance I can get that too?...

Thanks so much
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Well again I would record a macro when you do it manually.
Code:
With .Item(1)
       With .Font
            .Bold = True
            .Italic = False
        End With
        .Interior.ColorIndex = 3
End With
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,037
Members
449,062
Latest member
mike575

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