Sumifs/Macro

hopeyb

New Member
Joined
Aug 7, 2019
Messages
2
I posted on here before regarding a sumifs formula and I appreciate the help that I received. Now I am finding out that it is not picking up all the data that I need and my boss wants to make this into a macro after I figure out how to make the formula work since this formula is so cumbersome. I need some serious help!!

I was working with this formula:

=SUM(SUMIFS('[July USB.xls]pddetail.csv-10'!$I:$I,'[July USB.xls]pddetail.csv-10'!$A:$A,$A$6,'[July USB.xls]pddetail.csv-10'!$D:$D,CL3,'[July USB.xls]pddetail.csv-10'!$G:$G,{"Credit","ACH Credit(s)","Customer Deposit(s)","Miscellaneous Credit(s)"}))-SUM(SUMIFS('[July USB.xls]pddetail.csv-10'!$I:$I,'[July USB.xls]pddetail.csv-10'!$A:$A,$A$6,'[July USB.xls]pddetail.csv-10'!$D:$D,CL3,'[July USB.xls]pddetail.csv-10'!$G:$G,{"Return Item(s)"}))-SUM(SUMIFS('[July USB.xls]pddetail.csv-10'!$I:$I,'[July USB.xls]pddetail.csv-10'!$A:$A,$A$6,'[July USB.xls]pddetail.csv-10'!$D:$D,CL3,'[July USB.xls]pddetail.csv-10'!$L:$L,{"Reversal"}))

The problem is that I need to subtract the amount in column I if the words in column L contains "reversal", otherwise, it needs to keep the sum as is. It is not picking up the subtraction part. I cannot attach the spreadsheet here since I do not permission to do so one here. And then I need to figure out how to make this into a macro that will feed into another excel spreadsheet.
 
Last edited by a moderator:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,532
Office Version
365
Platform
Windows
I have removed your email address from your post. Generally, you should NEVER post your email address to public user forums. Spam Bots patrol such forums on the internet looking for email addresses to Spam.

Also as this is your second post, you obviously haven't replied to whoever helped you in you initial thread, which is considered to be very rude considering they have given their free time to try and help you.

There are add-ins available here the enable you to include a small amount of sample data in your post https://www.mrexcel.com/forum/about-board/508133-attachments.html
and rather than expecting somebody to dissect your formula, can you please explain what needs to happen?
 

Forum statistics

Threads
1,078,447
Messages
5,340,344
Members
399,370
Latest member
salamon

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top