+ Reply to Thread
Results 1 to 3 of 3

having trouble with building a dropdown box that references days in a year and days in qtr

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    1

    having trouble with building a dropdown box that references days in a year and days in qtr

    Hey guys,

    I could very much use everyone's help. So I'm creating a dropdown box (Which I already know how to make, using data validation) for my spreadsheet that contain years from 2010 to 2020 in D5 (referenced from sheet2) and coressponding days in a year in E5 (referenced from sheet 2 using Vlook up). In F5, I have another dropdown box for each quarter: 1st, 2nd, 3rd and 4th (referenced from sheet 2) and days in quarter in cell G5: 90, 91, 92, 92 (using Vlook up from sheet 2).
    Now hard part, the days in year E5 has to take into account the leap year (366 days in 2012, 2016 and 2020) which I managed to do also using the Vlookup. but for the the days in quarters (G5), I cant get the formula to factor in extra day in 1st quarter for the leap year. How can I resolve this? I uploaded whatever work i have done so far
    Maybe using 2 IF formulas in G5 (days in qtr)?
    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: having trouble with building a dropdown box that references days in a year and days in

    You should be using the end of month function. EOMONTH

    This will give you the serial number for the last day of each month.

    Do that for each month in the quarter and add then together.

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: having trouble with building a dropdown box that references days in a year and days in

    Hello,

    I used vba for your drop down validation lists and used an if related formula for your quarters based on the days figured for each quarter (which I determined on your sheet2). Not sure this is exactly what you were looking for, but might be an alternative. Good luck!
    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] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  2. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 PM
  3. add 30 days to the date, using 360 days year
    By AGA in forum Excel General
    Replies: 3
    Last Post: 03-16-2012, 11:53 AM
  4. Start Day Building out 365 Days
    By swalsh84 in forum Excel General
    Replies: 6
    Last Post: 09-22-2009, 05:23 AM
  5. i have two days and i want the difference in days, months, year
    By maja in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-21-2006, 08:14 PM

Tags for this Thread

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