Results 1 to 2 of 2

Thread: Sumifs/Macro
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Aug 2019
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Sumifs/Macro

    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 Fluff; Aug 23rd, 2019 at 11:33 AM.

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    29,106
    Post Thanks / Like
    Mentioned
    483 Post(s)
    Tagged
    48 Thread(s)

    Default Re: Sumifs/Macro

    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-...tachments.html
    and rather than expecting somebody to dissect your formula, can you please explain what needs to happen?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •