+ Reply to Thread
Results 1 to 4 of 4

Dynamic data validation to determine the SUM related output?

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    22

    Dynamic data validation to determine the SUM related output?

    Hi guys,

    You were a great help with trying to set up a dynamic data validation, where each of the subsequent data validation boxes change based on the selection in the first data validation box (while maintaining 4 parameters within a cell, except for the last one).

    I have used the IF-statements to determine the "Week's SUM" in H5.

    What I'd like to do next is to determine a formula in the "Week's SUM" cells (H6,H7,H8) based on the choices in data validation boxes "Week #" (G6,G7,G8) with the following rules in place:

    1. If I made a choice in G5 to be "1" which caused data validation in cell G6 to update, then in G6 I choose "2", the output in H6 should be just week 2's value of 20 (not the sum of week 1 and 2).

    2. However, if I choose "3" in G6 (after I chose "1" in G5, as above) then I'd like the output in H6 to be the SUM of week's 2 AND 3, if that makes sense and so on. (e.g. If I chose "5" in G6, then output in H6 should be the SUM of week's 2 AND 3 AND 4 AND 5).

    Same rules apply for H7 and H8. I have a feeling this may involve MATCH function and INDIRECT or SUMIFS but need a bit more guidance how to approach this.

    I've attached a file that which will hopefully make more sense.

    Any help would be great!

    Stas
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-22-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Dynamic data validation to determine the SUM related output?

    Just had a look at the file and realised I haven't actually saved the file before I posted it with the IF-statements in H5 but the formula I had for H5 is =IF(G5=1,B2,0)+IF(G5=2,C3,0)+IF(G5=3,C4,0)+IF(G5=4,C5,0)

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Dynamic data validation to determine the SUM related output?

    Figured it out with the use of looooooong string MATCH and OFFSET and IF statement formulae.
    Last edited by SChalaev; 12-02-2013 at 11:22 PM.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Dynamic data validation to determine the SUM related output?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Comparing dates of related items to determine if charge is necessary
    By spudzer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2013, 04:00 PM
  2. [SOLVED] Userform -Ok ClickButton - Determine emptyRow- data output problem
    By kai888 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2012, 08:37 AM
  3. Use a data validation list to determine another cell's contents
    By jstn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2012, 10:37 AM
  4. Replies: 5
    Last Post: 09-10-2010, 09:26 AM
  5. [SOLVED] Determine if cells are used for data validation in Excel
    By Brettjg in forum Excel General
    Replies: 0
    Last Post: 06-12-2006, 11:15 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