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

pcorpz

Active Member
Joined
Oct 29, 2004
Messages
321
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:

Forum statistics

Threads
1,081,560
Messages
5,359,608
Members
400,538
Latest member
leon_oscar

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top