+ Reply to Thread
Results 1 to 5 of 5

Sum weight based on dropdowns

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-12-2016
    Location
    Lancaster, PA
    MS-Off Ver
    Office 365
    Posts
    156

    Sum weight based on dropdowns

    Hello,

    I'm looking for a formula to sum up the weight of a wall based on the variables input through several dropdowns. I found several articles online about adding multiple values based on a single dropdown, but not how to add multiple values based on multiple dropdowns.

    On the attached, if you change a dropdown, the formula should go to sheet 2, find the weight, and add it all together.

    The first line is a desired result of manually adding the weights up, but not dynamic in that when you change the dropdowns, the weight doesn't update.

    Any help is appreciated! Thank you!

    EDIT: Sorry, I should have said, I tried the "=SUMIFS(Sheet2!I3:I51,Sheet2!B:B,Sheet1!B2,Sheet2!B:B,Sheet1!C2... etc.) formula and I get a "#VALUE" error... I'm guessing because each criteria range is the same range?
    Attached Files Attached Files
    Last edited by WaveWalker116; 03-15-2023 at 09:53 AM.

  2. #2
    Forum Contributor
    Join Date
    12-12-2016
    Location
    Lancaster, PA
    MS-Off Ver
    Office 365
    Posts
    156

    Re: Sum weight based on dropdowns

    So, I found I can do it with:

    Formula: copy to clipboard
    =SUMIF(Sheet2!B:B,B2,Sheet2!I:I)+SUMIF(Sheet2!B:B,C2,Sheet2!I:I)+SUMIF(Sheet2!B:B,D2,Sheet2!I:I)+SUMIF(Sheet2!B:B,E2,Sheet2!I:I)+SUMIF(Sheet2!B:B,F2,Sheet2!I:I)+SUMIF(Sheet2!B:B,G2,Sheet2!I:I)+SUMIF(Sheet2!B:B,H2,Sheet2!I:I)


    Is there any nicer way of doing it?

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sum weight based on dropdowns

    mAYBE:

    Formula: copy to clipboard
    =LET(A,Sheet2!$A$2:$A$60,B,Sheet2!$B$2:$B$60,C,Sheet2!$I$2:$I$60,D,$B$1:$H$1,E,B2:H2,
    F,SCAN("",A,LAMBDA(x,y,IF(y="",x,y))),
    IFERROR(1/(1/SUM(MAP(D,E,LAMBDA(g,h,FILTER(C,(F=g)*(B=h)))))),""))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Sum weight based on dropdowns

    Another way

    J4
    =SUMPRODUCT((B4:H4=Sheet2!$B$2:$B$52)*Sheet2!$I$2:$I$52)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-12-2016
    Location
    Lancaster, PA
    MS-Off Ver
    Office 365
    Posts
    156

    Re: Sum weight based on dropdowns

    Those work! Thank you!!

+ 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. Creating Dropdowns and Following On Relationships between Further Dropdowns
    By KevinExc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2022, 07:03 PM
  2. Dropdowns Based on 2 Criteria
    By raybeiler1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2022, 09:16 PM
  3. [SOLVED] Expected output based on 3 dropdowns
    By Neilesh Kumar in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-17-2021, 04:22 AM
  4. [SOLVED] VBA for dropdowns based on another dropdowns
    By abhi_jain80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-15-2016, 05:14 AM
  5. Help calculating the total weight lost from starting weight D1
    By rgainey201 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-31-2014, 06:16 PM
  6. [SOLVED] look up based on multiple dropdowns
    By nellyc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 07:27 AM
  7. Auto Calculate Shipping Weight/Cartons and Package Weight.
    By suhailsiddiqui09 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2013, 06:48 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