+ Reply to Thread
Results 1 to 8 of 8

Calculate a date dervied from 3 cells + calculating the amount of spec days.

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Calculate a date dervied from 3 cells + calculating the amount of spec days.

    Can anyone help me create a formula for these three problems? Thank you in advanced to anyone who takes the time to help me!

    Problem 1
    I want to calculate a date derived from the month name, the day, and the year in cell D2 & D3 respectively, but D2 & D3 need to remain empty until i enter in data in A2:C2 & A3:C3.

    Problem 2
    Then in cell F3 i'd like to have the total amount of Tuesdays & Saturdays between the dates in cell D2 & D3.

    Problem 3
    I want to drag the formula in F3 downward, but i want it to remain empty until i enter an end date:

    Example: F4 needs to remain empty until a date is entered in D4.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    Try these

    D2 and filled down
    =IF(COUNTA(A2:C2)=3,(A2&" "&B2&", "&C2)+0,"")

    F3 and filled down
    =IF(COUNT(D2:D3)=2,NETWORKDAYS.INTL(D2,D3,"1011101"),"")

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    how do i change the formula in f3 to any specific day? say i want it to be wednesdays and saturdays instead of tuesday and saturday?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    That's where this string comes in
    "1011101"

    That is a string of 7 1's and 0's representing the 7 days of the week, beginning with Monday.
    0's are counted, 1's are NOT counted

    So Wednesdays and Saturdays would be
    "1101101"

  5. #5
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    got it, so just change it to correspond to the string as desired? thanks

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    Yes

    You could even use a cell refernece there, say H1 or whatever.
    =IF(COUNT(D2:D3)=2,NETWORKDAYS.INTL(D2,D3,H1),"")

    Make sure H1 is formatted as TEXT to preserve leading 0's if used (if Monday was a day you wanted to count).
    Then you could use data validation on H1 to make a list of all possible strings you wanted to use..

  7. #7
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    little confused on the last suggestion

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calculate a date dervied from 3 cells + calculating the amount of spec days.

    instead of hard coding the 7 digit string into the formula
    =IF(COUNT(D2:D3)=2,NETWORKDAYS.INTL(D2,D3,"1011101"),"")

    You can put that string in a cell, say H1 for example
    =IF(COUNT(D2:D3)=2,NETWORKDAYS.INTL(D2,D3,H1),"")

    And put 1011101 in H1
    But that cell H1 needs to be formatted as TEXT.

+ 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] Calculating number of months given a set amount of days
    By jacobus1231 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2016, 05:35 AM
  2. [SOLVED] How to calculate debtors ageing amount in days on FIFO basis
    By King_BD in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2015, 10:57 PM
  3. Replies: 2
    Last Post: 11-21-2014, 09:35 AM
  4. Calculate amount of days per year within range
    By constructionbart in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 05:24 AM
  5. [SOLVED] DATE: Calculating date after "x" amount of days
    By myoung5149 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2014, 02:30 PM
  6. Replies: 6
    Last Post: 02-23-2010, 04:41 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