+ Reply to Thread
Results 1 to 3 of 3

continous formulas if this date give me this but if this other date five me that and so on

  1. #1
    Registered User
    Join Date
    11-07-2015
    Location
    canada
    MS-Off Ver
    na
    Posts
    2

    continous formulas if this date give me this but if this other date five me that and so on

    i

    In our payroll we have pay numbers that falls into biweekly pays.

    ex: pay 1 – Dec 25 – Jan 7/17

    Pay 2 – Jan 8 – Jan 21/17

    I want a formulas that says:

    if someone worked between Dec 25 and Jan 7/17 give me 2 (for pay)

    if someone worked between Jan 8 and Jan 21/17 give me 3 and so on and on

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: continous formulas if this date give me this but if this other date five me that and s

    A
    B
    C
    1
    Date
    Pay Pd
    2
    Sun 25 Dec 2016
    1
    B2: =INT((A2 - "12/11/16")/14)
    3
    Sat 07 Jan 2017
    1
    4
    Sun 08 Jan 2017
    2
    5
    Tue 21 Mar 2017
    7
    6
    Tue 28 Mar 2017
    7
    7
    Wed 29 Mar 2017
    7
    8
    Sat 01 Apr 2017
    7
    9
    Thu 22 Jun 2017
    13
    10
    Sat 24 Jun 2017
    13
    11
    Thu 29 Jun 2017
    14
    12
    Fri 07 Jul 2017
    14
    13
    Sun 16 Jul 2017
    15
    14
    Wed 09 Aug 2017
    17
    15
    Sat 12 Aug 2017
    17
    16
    Fri 18 Aug 2017
    17
    17
    Tue 05 Sep 2017
    19
    18
    Mon 18 Sep 2017
    20
    19
    Tue 03 Oct 2017
    21
    20
    Sun 15 Oct 2017
    22
    21
    Sat 21 Oct 2017
    22
    22
    Fri 03 Nov 2017
    23
    23
    Fri 08 Dec 2017
    25
    24
    Tue 12 Dec 2017
    26
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: continous formulas if this date give me this but if this other date five me that and s

    Hi and welcome to the forum

    I suspect there's a typo there and you meant Pay 3 is Jan 22 - Feb 4

    In B1 assuming a date in A1

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Plot dates from given date from give number of times in a vertical date range.
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2016, 01:37 AM
  2. [SOLVED] Give End Date Based on Start Date & Weekes Needed
    By mycon73 in forum Excel General
    Replies: 5
    Last Post: 12-08-2014, 01:36 AM
  3. [SOLVED] Formula to give next monday date from todays date
    By john dalton in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-17-2014, 07:20 AM
  4. [SOLVED] add years to todays date to give new date
    By jackal3300 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 07:08 PM
  5. vba print continous with paper continous and epson LQ300?
    By heroic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2013, 03:22 AM
  6. Replies: 2
    Last Post: 05-22-2013, 12:38 PM
  7. Adding one TextBox with weeks to text box with date to give final Date
    By davidloops in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 08:25 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