macro to look through report and make changes based on value of cells

pcorpz

Active Member
Joined
Oct 29, 2004
Messages
324
Hi MVP's! Hoping to find a macro solution that will automate several manual adjustments I need to do in our Sales Report everytime. Here's a link of my report screenshot for your reference!

https://www.dropbox.com/s/i55v6gnh1c016mb/excelsalesreport.PNG?dl=0

1) Some Credit Memo line items do not show a negative sign, but some do. I would like all credit memo line items to have a negative sign (on columns R, S, T, U, V, W).
2) If the FormatCode (column AA) is 412010000000 or 411500000000 or 412000000000, I would like to adjust the Unit Cost (column T), Total Cost (column V) and Gross Profit (column W) of these items. The Unit Cost should be 80% of the Unit Sales (column S), so it has a set 20% gross margin. This applies to both Invoice and Credit Memo line items. There's also 3 items that belongs to a different format code that needs to be adjusted as well. I've highlited these items (LABOR-KIS MNGD etc).
3) Lastly, there are invoice items that has a negative quantity (column R), I would like add a negative sign on columns R, S, T, U, V, W for these items.

I appreciate any help and tips! Thank you
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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