+ Reply to Thread
Results 1 to 14 of 14

Sumifs with data validation

  1. #1
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Sumifs with data validation

    Good evening,

    I'm completely lost trying to figure out how I can solve this issue.

    I have created a workbook which contains data points for some outlets and also grouped outlets.

    I've made 2 drop down validation lists one for individual stores and other for the grouped, now I would like to get the total sum for each category depending the selection from the drop down cell.

    I did manage to get the totals for the first drop down when outlet is selected but cannot figure our when I select group and change the group name.

    Your help is much appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Sumifs with data validation

    Why not just

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumifs with data validation

    Presumably in D11 copied down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But surely a Pivot Table is a more elegant way of achieveing what you want. See attached
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Hi Bob, It does work however when I change D3 to Outlet and select the store (which should have a value) I don't get any values.

  5. #5
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Hi Richard,

    Would prefer to have a summary page instead of pivot table, you formula works but when I change D3 to Outlet and select the store (which should have a value) I don't get any values.

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

    Re: Sumifs with data validation

    Please Login or Register  to view this content.
    sheet "working" was re-arranged for the dropdowns
    Attached Files Attached Files
    Last edited by protonLeah; 08-06-2019 at 10:35 PM.
    Ben Van Johnson

  7. #7
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Thanks for your solution, however where have my outlets list gone? I would like to be able to view either by Outlet or Group, then I select in my second drop down accordingly.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumifs with data validation

    Quote Originally Posted by Alba573 View Post
    Hi Richard,

    Would prefer to have a summary page instead of pivot table, you formula works but when I change D3 to Outlet and select the store (which should have a value) I don't get any values.
    In the file I attached D3 contains the GROUP field items, i.e those in colum E of the workings. D5 is the OUTLETS, column D on workings.
    Please clarify what you're trying to achieve.

    The PT I showed is the default layout in a single column with insets for differet fields. The Classic version of the PT can be made to look more like the layout you used.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sumifs with data validation

    Try this.
    In D11 then copied down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Hi,

    I knew its going to be difficult to explain in writing, but I'll try again.

    I would like to achieve as follows:
    I will first make the selection in D3 if it's either an outlet or a group; if it's an "Outlet" the list in D5 shows the outlets list and select accordingly, and the YTD expenses will bi for the selected outlet. (this I managed to achieve).
    My problem is that when I select "Group" in D3 and the list of groups show in D5 the YTD expenses aren't working(this is what I'm trying to achieve) since the column of the Group names is column P.

    So I'll be able to select either "Group" or "Outlet" select the desired in D5 and have the YTD expenses updated accordingly.

    Sample file has been updated.

    Thanks,
    Stephen
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sumifs with data validation

    Pl see my previous post #9.
    It is working ok.
    Last edited by kvsrinivasamurthy; 08-07-2019 at 10:11 AM.

  12. #12
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Thank you and well done, that's what I was trying to achieve.

    Thank you all for your support.

  13. #13
    Registered User
    Join Date
    05-16-2014
    Location
    Pembroke, Malta
    MS-Off Ver
    Microsoft excel for Office 365 MSO (16.11727.20222) 32-bit
    Posts
    27

    Re: Sumifs with data validation

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see my previous post #9.
    It is working ok.
    Thank you and well done, that's what I was trying to achieve.

    Thank you all for your support.

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumifs with data validation

    Hi

    One way.
    In E3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    D10 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I can't help thinking you're making life more difficult when a simple Pivot Table laid out as a table would give you the resukts you want and offer a lot more flexibity.

+ 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: 1
    Last Post: 01-14-2018, 11:04 AM
  2. Combined wildcard, data validation and sumifs issue
    By Gekko42 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2017, 12:01 PM
  3. [SOLVED] SUMIFS with two criteria in data validation drop down lists
    By Solocam31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2016, 04:39 AM
  4. [SOLVED] Multiple selections using data validation (sumifs)
    By scruz9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2015, 04:10 PM
  5. Need help with SumIfs & Data validation
    By Mr Nat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2014, 12:52 PM
  6. [SOLVED] SUMIFS & Data Validation
    By SChapman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2013, 03:40 PM
  7. Sumifs and data validation in Excel 2010
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 05-21-2011, 08:29 PM

Tags for this Thread

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