Hello, Gang
I have this code that is adding up values in column BA what ever can be grouped, based on Column U.
I need to exclude red values from the subtotal
Untitled.png
Here is the beautiful code that I'm using to run the subtotals.
I want this code to also exclude the red customs/brokerage/tax related values from the subtotal in column BA in yellow.
Can't use any other cells except GREEN and YELLOW
I can do that manually with AGGREGATE minus VLOOKUPs that match *tax*, *gst*, *brokerage*, *customs*,*return*, but I have a massive data table.
=(AGGREGATE(9,4,range)-VLOOKUP("tax",range,2,FALSE)-VLOOKUP("*returns*",range,2,FALSE)-VLOOKUP("*customs*",range,2,FALSE)-VLOOKUP("*broker*",range,2,FALSE))
Thank you!
Bookmarks