+ Reply to Thread
Results 1 to 10 of 10

[SOLVED]Find a closer date for payroll in a range of date

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    [SOLVED]Find a closer date for payroll in a range of date

    Hello,

    I have a range of monthly date in Column B1 to G1. Every month we have to pay out $150,000 (in Row 2). In row 9, I have a range of weekly date. we are making payroll on the 5th and 20th of every month. I am looking for a formula that can populate if c11 is the payroll week (this week has 20th, therefore, it is payroll week) in row 1, it will assign 50% of correspond salary is under the month of row 1.


    I hope I am making myself clear.

    Thanks for the help.
    Attached Images Attached Images
    Last edited by jackson_hollon; 10-06-2014 at 01:34 PM. Reason: Solved

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Find a closer date for payroll in a range of date

    Hi, refer the attachment wit formulas
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Find a closer date for payroll in a range of date

    boopathiraja,

    Thank you very much for the help. However, the formula seems have problem. First of all, there is no May in row 1, but in row 10, it picked up a value for May. Second, in O10, the Sep 29 payroll is missing. I used the same formula, but didn't work. Could you please take a look again?

    Thank you very very much for your help.

    Monthly and Weekly V2.GIF

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Find a closer date for payroll in a range of date

    can you attach sample file with desired result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Find a closer date for payroll in a range of date

    nflsales


    I have attached the file here. Thank you in advance for all of your help.


    efb.xlsx

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Find a closer date for payroll in a range of date

    =IF(OR(AND(DAY(C9+2)<=5,DAY(C9+7)>5),AND(DAY(C9)<=5,DAY(C9+7)>5),AND(DAY(C9)<=20,DAY(C9+7)>20)),LOOKUP(C9-7,$B1:$N1,$B4:$N4),0)
    TRY THIS FORMULA IN Cell "C12" and copy towards right
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Find a closer date for payroll in a range of date

    nflsales,

    Thanks for the help. I tried the formula, it works great except the entire Dec 15 is off by 75,000. Could you please check?

    Thank you very much again.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Find a closer date for payroll in a range of date

    as per data in your sheet Dec-15 showing an amount of Rs 470,764.26 in that half of the amount is Rs. 235382.13
    the formula is showing the same result
    i don't know how you got the 310382.128254075

  9. #9
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Find a closer date for payroll in a range of date

    nflsales


    You are right. I just found my mistake.

    Thank you very much for the help.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: [Solved]Find a closer date for payroll in a range of date

    You are welcome,

    If your question is resolved, mark it SOLVED using the thread tools .and ad.d reputation by click on the star if you think it helped you

+ 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] look-up a date in a range and find the date that is closest todays date
    By VanShark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 09:46 PM
  2. [SOLVED] How do you make cells change color as the indicated date come closer?
    By MIZUGAMI in forum Excel General
    Replies: 5
    Last Post: 09-19-2012, 02:32 PM
  3. Automatic mail on due date (30 days or closer)
    By medioman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2012, 05:32 AM
  4. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  5. Replies: 11
    Last Post: 01-24-2007, 04:25 AM

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