Need help with a Excel Macro (I am a Newbie)

theebookzoo

New Member
Joined
Aug 12, 2008
Messages
16
Hello... Can an yone help me please?
I have two excel files that laid out exactly the same.
The two files are: MB.xls and CT.xls.
I need to check each of the columns starting at C3 in the CT file with the column C3 in the MB file, if the rate if 5% less in the CT than in the MB (in C3 cell) then keep the C3 valuie in the CT table, ELSE, take the MB C3 rate - 5% and put that in the C3 of the CT table and change the color (since it was changed). The MB table is that master so that is why I cpmpare to that file and make changes in the CT table.
Can anyone help me with this... I know this has to be easy for someone that is verse in Excel, I am just not.

Thanks!!!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If you want VBA, what have you tried so far? Show us any code that you've been playing with.
 
Upvote 0
Sure...
I think this might work, just not sure now how color is red if it is changed...

=IF(OR(CT!C3<MB!C3*5%,CT!C3>CT!C3*5%),
MB!C3,MB!C3+(MB!C3*5%))
 
Upvote 0
i THINK IT STRIPPED SOME STUFF OUT OF MY LAST REPLY, BELOW IS WHAT i HAVE IN THE CELL...

=IF(OR(Company!C3<macb!c3*5%,company!c3>MB!C3*5%),MB!C3,MB!C3+(MB!C3*5%))</macb!c3*5%,company!c3>
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,307
Members
449,151
Latest member
JOOJ

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