+ Reply to Thread
Results 1 to 4 of 4

Formulas to calculate multiple data validation responses

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2016
    Location
    Western Hemisphere
    MS-Off Ver
    2013
    Posts
    13

    Formulas to calculate multiple data validation responses

    Hello,

    I am in search of assistance in creating formulas that will help me ultimately aggregate a bunch of data and create a quick reference dashboard to view the summary of user inputs. I have attached an example workbook that explains what I am looking for. Essentially, it will require quite a few dependencies but I'm not quite sure what the most efficient and effective way would be to collect and analyze the data points. For example, in one section users should be able to select multiple selections given a list of options, but I don't know how I would do that and implement some of the things I am looking for.

    Feel free to ask for clarification- it may seem a bit convoluted but I tried to explain it in the easiest way possible.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Formulas to calculate multiple data validation responses

    Interesting Problem.

    Lets start with Multiple Selection Validation for Column C. This is possible using a simple Macro.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim Oldvalue As String
    Dim Newvalue As String
    
    On Error GoTo Exitsub
    If Target.Address <> "$A$1" Or Target.SpecialCells(xlCellTypeAllValidation) Is Nothing Or Target.Value = "" Then GoTo Exitsub
    
    Application.EnableEvents = False
    
    N = Target.Value
    Application.Undo
    
    If Target.Value = N Then Target.Value = "": GoTo Exitsub
    
    If Target.Value <> "" Then O = Target.Value & ", "
    
    If InStr(O, N & ", ") = 0 Then
    T = O & N & ", "
    Else:
    T = Replace(O, N & ", ", "")
    
    End If
     
    T = Left(T, Len(T) - 2)
    
    Target.Value = T
    
    Exitsub:
    Application.EnableEvents = True
    End Sub



    Ok I have modified that macro for your requirement.

    Modifying A3 0r A8 will change the Data Validation in C3 and C8.

    You can then make multiple selections in C3 and C8

    
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Target.Cells.Count > 1 Then Exit Sub
    
    If Not Intersect(Target, Range("A3:A8")) Is Nothing Then
    
         Ans = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
         
         DataT = Left(Ans, InStr(Ans, Target.Value) + Len(Target.Value) - 1)
         
             With Cells(Target.Row, 3).Validation
            .Delete
            .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
            xlBetween, Formula1:=DataT
            .IgnoreBlank = True
            .InCellDropdown = True
            .InputTitle = ""
            .ErrorTitle = ""
            .InputMessage = ""
            .ErrorMessage = ""
            .ShowInput = True
            .ShowError = True
        End With
    
    End If
    
    If Not Intersect(Target, Range("C3:C8")) Is Nothing Then
    Application.EnableEvents = False
    
    N = Target.Value
    Application.Undo
    
    If Target.Value <> "" Then O = Target.Value & ", "
    
    If InStr(O, N & ", ") = 0 Then
    T = O & N & ", "
    Else:
    T = Replace(O, N & ", ", "")
    
    End If
     
    T = Left(T, Len(T) - 2)
    
    Target.Value = T
    
    Exitsub:
    Application.EnableEvents = True
    End If
    
    End Sub
    Attached Files Attached Files
    Last edited by mehmetcik; 05-05-2016 at 08:26 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    01-29-2016
    Location
    Western Hemisphere
    MS-Off Ver
    2013
    Posts
    13

    Re: Formulas to calculate multiple data validation responses

    Great, thanks for that. I'm off to a good start, but I still have quite a few cells that I need to figure out. Is some of this better suited to a formula, or is a macro still the better way?

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Formulas to calculate multiple data validation responses

    You would need to explain the next stage, clearly with examples.

+ 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. Changing Drop Down to Allow Multiple Responses and adding new responses to drop down
    By Anthony Buchanan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2016, 02:17 PM
  2. [SOLVED] Calculate percentages of multiple responses from a list
    By rnewson in forum Excel General
    Replies: 5
    Last Post: 01-29-2016, 05:36 AM
  3. Pivot Table Survey Data Multiple Questions, 5 Responses
    By mydragonstalents in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-20-2013, 06:15 AM
  4. [SOLVED] Data Validation with multiple formulas
    By PolarX in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-25-2013, 08:20 PM
  5. Multiple Formulas based on Data Validation
    By alphadave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 07:34 AM
  6. Problem with Formulas based on Data Validation Selection from multiple tabs
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2012, 09:40 PM
  7. Data Validation: Multiple Formulas required in 1 cell?
    By ET Timor in forum Excel General
    Replies: 8
    Last Post: 11-23-2009, 11:31 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