+ Reply to Thread
Results 1 to 7 of 7

Help with Sumproduct formula to disregard a column if not applicable.

  1. #1
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Help with Sumproduct formula to disregard a column if not applicable.

    I need assistance with a sumproduct formula. I'd like it to look up 3 criteria (Job, State and Location, if applicable) and pull in the rate. For the most part the formula works but if I change the dropdown to "Location 2", it doesn't work since the cells in Column L are blank. Basically, I'm trying to pull in rates for different locations that have a unique rate (ie: name 1) but for all other locations in Arizona (Location 2) it would disregard column L and just use the standard rate in column N. Column L throws me off since I want to say that if the name is not listed in column L and it's blank, then just use the standard rate. Not sure if I'm explaining this well but perhaps the spreadsheet will help which I've attached.

    =SUMPRODUCT((Calculator!$K$5:$K$10=$A11)*(Calculator!$L$5:$L$10=$A$5)*(Calculator!$M$5:$M$10=$A$7)*(D$10>=$B11)*Calculator!$N$5:$N$10)
    Attached Files Attached Files
    Last edited by tml2424; 11-20-2020 at 04:25 PM. Reason: Upload file error

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    I don't see any role for the dates in the lookup table
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts braces {} around the formula (though do not attempt to manually insert these yourself).


    Why the .xls file vs. xlsx?
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,652

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    Move (C$10>=$B11) as condition out of SUMPRODUCT
    A5 should be replaced by: IF(COUNTIF($L$5:$L$17,$A$5),$A$5,"") says: If A5 exist, A5, else, "" (blank)
    Finally,

    Please Login or Register  to view this content.
    Quang PT

  4. #4
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    Thanks ProtonLeah. For some reason I tried uploading a .xlsx, .xlxb, .xlsm and none worked. The only file type that worked was .xls. Not sure why that was.

    The formula you provided only appears to work for "Location 1" but if I change the drop down to any other Location, it is giving me a #n/a.

  5. #5
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    Thanks bebo. This appears to be super close and works for every location except "Location 7" in the drop down. I believe this has to do with the fact that Location 7 is in column L but only for 1 job. Hmmmm any thoughts?
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    Try (with date comparison added) added IFERROR() for the case of no location specified.:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 11-21-2020 at 10:31 PM.

  7. #7
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Re: Help with Sumproduct formula to disregard a column if not applicable.

    ProtonLeah....that formula did the trick. Thank you!

    bebo021999 - I have no idea why your formula didn't work (Location 7) but conceptually it makes sense and seems like it should work. That one puzzles me.

+ 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. [SOLVED] Master tab serial number list parsed out to applicable cells in applicable worksheets
    By kiwimtnbkr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2017, 10:57 AM
  2. IF formula to disregard blanks
    By CaitlinKnox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2015, 07:46 PM
  3. [SOLVED] Copy data in column A to every applicable row in group
    By cindywylie in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-14-2014, 06:50 AM
  4. [SOLVED] Disregard zero in a MIN formula...
    By RPM509 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2013, 08:03 PM
  5. Formula to disregard a value in calculations
    By kethyar in forum Excel General
    Replies: 1
    Last Post: 04-12-2008, 06:58 PM
  6. Need Help With Formula (Disregard my display name can't change)
    By Need help with sumif in forum Excel General
    Replies: 1
    Last Post: 05-16-2006, 09:42 PM
  7. Conditional formatting applicable to entire column
    By jackalx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2005, 12:20 PM

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