+ Reply to Thread
Results 1 to 4 of 4

Formula to insert amount if date is in week 3

  1. #1
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Formula to insert amount if date is in week 3

    My weeks end on Friday.

    I need a formula that will look at dates in row 6 and based on that day insert $10,000 if that date is the end date for week 3

    If date is not 3rd week cell needs to be 0.

    For examples:

    05/04 last day of first week insert 0
    05/11 last day of 2nd week insert 0
    05/18 last day of 3rd week insert $10,000

    Thank you

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Formula to insert amount if date is in week 3

    Try this

    =(CEILING((G2-(G2-DAY(G2)-WEEKDAY(G2-DAY(G2)+1,2)))/7,1)=3)*10000

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to insert amount if date is in week 3

    Are you only showing Friday dates?

    If so then try this formula assuming date in A1

    =(DAY(A1)>14)*(DAY(A1)<22)*10000
    Audere est facere

  4. #4
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Formula to insert amount if date is in week 3

    Thank you guys

    Bob your formula unfortunately wasn't accurate.

    Daddylonglegs formula is perfect. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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