+ Reply to Thread
Results 1 to 1 of 1

Macro based on results in two drop-down boxes

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    60

    Macro based on results in two drop-down boxes

    Hello,
    I am new to VBA but I think this is possible. I have two drop-down lists that contain text and are named (A2=USID and B2=Program). What I need is to have a COUNTIF equation calculated based on the selection in the two drop down boxes. For instance, IF USID = RMR-Other AND Program = LTE then calculate the following:

    Result in cell G3: COUNTIFS(F_MS30,"<="&G$2,A_MS30,"",USID_Range,"=RMR-Other",Program_Range,"=LTE")
    Result in cells H3:BV3: COUNTIFS(F_MS30,"<="&H$2,F_MS30,">"&G$2,A_MS30,"",USID_Range,"=RMR-Other",Program_Range,"=LTE")

    -Where G2 = a date, not named
    -Where H2:BV2 = dates, not named
    -Where F_MS30 = a named range of dates
    -Where A_MS30 = a named range of dates
    -Where USID_Range = a named range of text
    -Where Program_Range = a named range of text

    I just need to be shown a few iterations of the code and I can catch on and complete the rest.

    Thanks in advance.
    Attached Files Attached Files

+ 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] Formulas Based on results from a drop down menu
    By bramdana in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2014, 01:29 AM
  2. Replies: 0
    Last Post: 05-27-2011, 12:01 PM
  3. Need to fill in one cell based on results of drop down
    By bibber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2010, 02:59 PM
  4. Replies: 0
    Last Post: 07-30-2008, 07:57 PM
  5. macro sorting drop down boxes
    By hoshino in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2007, 05:58 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