+ Reply to Thread
Results 1 to 11 of 11

Looking for a formula that is dependent on criteria from a drop down

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    Neosho, MO
    MS-Off Ver
    MS Office 365
    Posts
    23

    Looking for a formula that is dependent on criteria from a drop down

    I am making a template to keep in and out times for individuals of 2 seperate groups..

    The users of this template are not too computer savvy and I would like to try and make it as easy as possible.

    Ideally I would like to set the month/year in a drop down within box A1 or A2. Then turn around and use that month/year as a criteria to autofill the days in row 1 and the corresponding dates in row 2.

    Anyone have any ideas please?

    Annotation 2019-08-13 083347.png

  2. #2
    Forum Contributor
    Join Date
    04-15-2015
    Location
    beirut
    MS-Off Ver
    2010
    Posts
    107

    Re: Looking for a formula that is dependent on criteria from a drop down

    try in the cell F1 this formula (Number Format=Short date) and drag to right

    HTML Code: 
    and in cell F2 this formula (Number Format=general) and drag to right
    HTML Code: 
    Last edited by salim ali; 08-13-2019 at 11:03 AM.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Looking for a formula that is dependent on criteria from a drop down

    This should be what you are looking for: https://www.get-digital-help.com/201...ndar-in-excel/
    Click the * to say thanks.

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

    Re: Looking for a formula that is dependent on criteria from a drop down

    Pl upload sample file.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Looking for a formula that is dependent on criteria from a drop down

    If those don't do it for you...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Registered User
    Join Date
    11-28-2018
    Location
    Neosho, MO
    MS-Off Ver
    MS Office 365
    Posts
    23

    Re: Looking for a formula that is dependent on criteria from a drop down

    Quote Originally Posted by salim ali View Post
    try in the cell F1 this formula (Number Format=Short date) and drag to right

    HTML Code: 
    and in cell F2 this formula (Number Format=general) and drag to right
    HTML Code: 
    Thank you for the effort but row 1 is for Monday, Tuesday, etc.. Row 2 is for the Dates.

    Ill will attach a sample asap.

  7. #7
    Registered User
    Join Date
    11-28-2018
    Location
    Neosho, MO
    MS-Off Ver
    MS Office 365
    Posts
    23

    Re: Looking for a formula that is dependent on criteria from a drop down

    Ok Sample uploaded. I implemented the drop downs.
    Problem is that I need the merged cells for in and out times under 1 day.. Unless you have a bypass to avoid that.. Im not sure how to do that yet.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-13-2019 at 12:25 PM. Reason: Glenn Kennedy: clutter removed.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Looking for a formula that is dependent on criteria from a drop down

    In D1:
    =TEXT(D2,"dddd")

    In D2:
    =IF(DATE($A$2,MONTH(1&$A$1),1+(COLUMNS($D:D)-1)/2)>EOMONTH(DATE($A$2,MONTH(1&$A$1),1),0),"",DATE($A$2,MONTH(1&$A$1),1+(COLUMNS($D:D)-1)/2))

    This will return blanks for short months, instead of running into the next month.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-28-2018
    Location
    Neosho, MO
    MS-Off Ver
    MS Office 365
    Posts
    23

    Re: Looking for a formula that is dependent on criteria from a drop down

    THATS IT! Thank you so much!

    Now I just have to apply those formulas to company B

    And figure out the "auto jump to current date" function.

    excelforum.com/excel-programming-vba-macros/1286326-a-script-to-auto-jump-to-a-date-in-a-row.html#post5175743
    Last edited by AliGW; 08-13-2019 at 12:50 PM. Reason: Please don't quote unnecessarily!

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Looking for a formula that is dependent on criteria from a drop down

    All you have to do is create your dropdowns in A1 & a2. Then select the two merged cells in D1/E2, copy paste into the same cells in the next sheet and drag the formula all the way across. 2 seconds...

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  11. #11
    Forum Contributor
    Join Date
    04-15-2015
    Location
    beirut
    MS-Off Ver
    2010
    Posts
    107

    Re: Looking for a formula that is dependent on criteria from a drop down

    Try this new formula In cell D1 (Number format =dddd)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    same formula in D2 (with format =short date)
    values in A1 must be 1,2,3.....12
    cells in rows 1 and 2 starting from column D must be Unmerged
    I can't Upload my file , Why I don't know
    Last edited by salim ali; 08-13-2019 at 02:38 PM.

+ 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. 2 criteria for dependent drop down list
    By rgiglio7489 in forum Excel General
    Replies: 2
    Last Post: 01-08-2015, 04:38 PM
  2. Formula Dependent on Multiple Drop Down Boxes
    By shawnvon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2014, 02:53 AM
  3. Dependent Drop Down Lists with Lookup in Table Formula
    By dannysporea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2013, 12:27 PM
  4. Dependent Drop Down List Formula Help
    By djw2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2012, 06:13 PM
  5. [SOLVED] Dependent Drop down list with DEPENDENT DEFAULT VALUE (e.g. Blank)
    By Waqar Ali in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2012, 06:31 AM
  6. Variable Drop Down Dependent List with Multiple Criteria
    By Spellbound in forum Excel Formulas & Functions
    Replies: 43
    Last Post: 02-02-2012, 06:40 AM
  7. dependent drop down formula in excel 07
    By malathy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2010, 10: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