+ Reply to Thread
Results 1 to 10 of 10

Multiple If functions???

  1. #1
    Registered User
    Join Date
    06-22-2018
    Location
    Fort Bragg, NC
    MS-Off Ver
    2016 MSO
    Posts
    5

    Multiple If functions???

    Hello all,

    I have a database that displays the following data (date, ID, Category, Item, and Amount paid) for monthly payments.. for an example "

    date ID Category Item Amount paid

    June 5, 2018 WPS Investments Real Estate $100.00"
    June 7, 2018 WPS Investments Real Estate $250.00
    July 12 2018 PSA Investments Real Estate $100.00
    June 10, 2018 WPS Housing Mortgage $1112.00

    What I need help with is writing a formula that adds all the entries that meet the following criteria; Date falls in June, "ID" = "WPS", "item" = "real_estate".
    so the forumla should equal $350.00. Im guessing this can be accomplished through using multiple if functions??

    Thanks in advance

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Multiple If functions???

    is each of these June 5, 2018 WPS Investments Real Estate $100.00 in one cell only? Or is the date in one cell, the WPS investments in another cell, real estate in another and the dollar figure in another cell?
    A sample sheet might go a long way to getting you what you need.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-22-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    15

    Re: Multiple If functions???

    date = a1, id = b1, item = c1 amount = d1 for example...

    sumifs(d1:d10,a1:a10,"June",b1:b10,"WPS",c1:c10,"Real_estate")

    Just change the ranges and criteria to what ever you need them to be. So d1:d10 is the sum range and the each range and the criteria for that range after that and it will give you a total for any rows that meet said criteras.
    Last edited by Webz2k; 06-22-2018 at 08:37 AM.

  4. #4
    Registered User
    Join Date
    06-22-2018
    Location
    Fort Bragg, NC
    MS-Off Ver
    2016 MSO
    Posts
    5

    Re: Multiple If functions???

    Quote Originally Posted by Sambo kid View Post
    is each of these June 5, 2018 WPS Investments Real Estate $100.00 in one cell only? Or is the date in one cell, the WPS investments in another cell, real estate in another and the dollar figure in another cell?
    A sample sheet might go a long way to getting you what you need.

    apologies. but each entry is in its own cell

    (a1) ( b1) (c1) (d1) (e1)
    June 5 2018, WPS, Investments, Real Estate, $100.00

  5. #5
    Registered User
    Join Date
    06-22-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    15

    Re: Multiple If functions???

    =sumifs(E:E,A:A,"June",B:B,"2018",C:C,"WPS",D;D,"Real_Estate")

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Multiple If functions???

    this will work but you have to convert the dates to numbers
    =SUMPRODUCT(($E$2:$E$13)*($A$2:$A$13 > 43251)*($A$2:$A$13 < 43282)*($B$2:$B$13="wps")*($D$2:$D$13="real estate"))
    43251 is the equivalent of 5/31/2018 and 43282 is the equivalent of 7/1/2018
    OR, you can point to cells with the date values in them like this...
    =SUMPRODUCT(($E$2:$E$13)*($A$2:$A$13 > L2)*($A$2:$A$13 < L3)*($B$2:$B$13="wps")*($D$2:$D$13="real estate"))
    where 5/31/2018 is in L2 and 7/1/2018 is in L3 for example.

    EDIT: this should also work...
    =SUMPRODUCT(($E$2:$E$13)*((TEXT($A$2:$A$13,"mmyyyy")="062018")*($B$2:$B$13="wps")*($D$2:$D$13="real estate")))
    Last edited by Sam Capricci; 06-22-2018 at 09:21 AM.

  7. #7
    Registered User
    Join Date
    06-22-2018
    Location
    Fort Bragg, NC
    MS-Off Ver
    2016 MSO
    Posts
    5

    Re: Multiple If functions???

    Ive attached an image of my sheet to clear up any cunfusion
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    06-22-2018
    Location
    Fort Bragg, NC
    MS-Off Ver
    2016 MSO
    Posts
    5

    Re: Multiple If functions???

    tried this method and it seems it should work yet something is out of wack somewhere

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Multiple If functions???

    first, which post are you responding to, mine or Webz2k's? Second, did you try my second formula?
    =SUMPRODUCT(($E$2:$E$13)*((TEXT($A$2:$A$13,"mmyyyy")="062018")*($B$2:$B$13="wps")*($D$2:$D$13="real estate")))

    I set up a sheet with your values in it and it works fine with those and returned 350 with all the functions I provided you.

    Posting a snapshot will not help so the image in post #7 isn't showing us more than you gave us in posts 1 and 4.

    if you post a workbook with actual (desensitized) data we can see where our formulas go wrong.
    "something is out of wack somewhere" isn't helpful, what is the formula you are using and what is it returning?

  10. #10
    Registered User
    Join Date
    06-22-2018
    Location
    Fort Bragg, NC
    MS-Off Ver
    2016 MSO
    Posts
    5
    Quote Originally Posted by Sambo kid View Post
    first, which post are you responding to, mine or Webz2k's? Second, did you try my second formula?
    =SUMPRODUCT(($E$2:$E$13)*((TEXT($A$2:$A$13,"mmyyyy")="062018")*($B$2:$B$13="wps")*($D$2:$D$13="real estate")))

    I set up a sheet with your values in it and it works fine with those and returned 350 with all the functions I provided you.

    Posting a snapshot will not help so the image in post #7 isn't showing us more than you gave us in posts 1 and 4.

    if you post a workbook with actual (desensitized) data we can see where our formulas go wrong.
    "something is out of wack somewhere" isn't helpful, what is the formula you are using and what is it returning?

    I’ve tried your method and it worked perfectly. Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 03-17-2015, 01:35 AM
  2. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  3. [SOLVED] Help with multiple IF functions and possible lookup functions.
    By englishfellow in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-29-2013, 01:49 PM
  4. Replies: 4
    Last Post: 03-08-2013, 09:49 AM
  5. Replies: 4
    Last Post: 01-08-2013, 09:04 AM
  6. Multiple IF Functions or VLOOKUP functions
    By yinka00000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2012, 11:29 PM
  7. [SOLVED] multiple "if" functions depending on previous functions
    By andyr85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2012, 10:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1