+ Reply to Thread
Results 1 to 6 of 6

Formulas Based on results from a drop down menu

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Gloucester
    MS-Off Ver
    EXCEL 2007
    Posts
    5

    Arrow Formulas Based on results from a drop down menu

    Hey all,

    An interesteing one for you here.

    I am building a sheet that helps managers at our company decipher information that is given to them on a daily workbook I created.

    I want to have a drop down menu in Col J, that refers to the major questions they will ask.

    Time started (Before)
    Time Finished (After)
    Number of Cards (More than)
    Stops Per hour (more than)
    Amount of Time Taken (More Than)

    I have set up in Col (K) a secondary drop-down list which based on the question selected in (J) will offer options for the answer E.G Time questions will make (K) refer to options based on time and selections based on amounts will offer numbers as an answer.

    The elements in brackets are the parts of the formula that create the search option. E.G If select 'Time Started' it will search for all records that started before the time selected in the next col (K)


    Right if that makes sense.. I have completed this. so I have the following: A question drop down list in (J), and an answer drop down in (K) which is dependant on the type of question asked. (I have attached an example)

    I want to now have a totals box after the question where it displays a total amount of cols that are true to the details in the question.


    After that (if possible) I will want to use conditional formatting to highlight the ones that reflect to the question.



    Realistically if possible i wouldnt mind creating a question box, a box that allows them to select 'more than', 'exact' or 'less than' and then the specific value.
    Basically a conditional formatting box for dummies within the worksheet. Attached is a demonstration. Any thoughts would be great thank you
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-23-2013
    Location
    Gloucester
    MS-Off Ver
    EXCEL 2007
    Posts
    5

    Re: Formulas Based on results from a drop down menu

    any thoughts please guys?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Formulas Based on results from a drop down menu

    Hi and welcome to the forum

    Nice set-up so far!!

    Not sure how you get 41, but maybe this will get you headed in the right directions. I used this to count the number of entries (based on your data and selections) that were <= 5...
    =COUNTIF(INDIRECT(J2),"<="&K2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Formulas Based on results from a drop down menu

    Hi bramdana

    Also...Welcome to the Forum!!

    Here's a UserForm approach with VBA. You'll probably want to change to strictly Military Time the Row Source for "People Who Finished".

    The Code runs from a Button on Sheet1
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-23-2013
    Location
    Gloucester
    MS-Off Ver
    EXCEL 2007
    Posts
    5

    Re: Formulas Based on results from a drop down menu

    Cheers Gents.

    I hadnt really played with VBA but jaslake thats brilliant ty for the sample aswell.

    Fdibbins - excel formulas were the way i wanted to go and you have helped, still some niggling issues which i will try but many thanks for your help!

    feel free to give more ideas guys we are all always learning!

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

    Re: Formulas Based on results from a drop down menu

    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.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    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. VBA referencing drop down menu, and calulating based on choice in menu
    By rheinevetter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2013, 08:16 PM
  2. [SOLVED] Excel 2007 : new drop down menu based on dropdown menu in previous cell
    By martinpols in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 02:33 AM
  3. Replies: 1
    Last Post: 03-20-2009, 08:05 PM
  4. Drop down menu with results
    By frizzocki in forum Excel General
    Replies: 5
    Last Post: 08-21-2006, 04:20 PM
  5. [SOLVED] Drop Down Menu and multiple results
    By Chewy in forum Excel General
    Replies: 1
    Last Post: 01-13-2006, 05:25 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