+ Reply to Thread
Results 1 to 6 of 6

Thread: Adding a Meal and Transport Allowances on Public Holidays

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    44

    Adding a Meal and Transport Allowances on Public Holidays

    I have this column that I wish to calculate the Meal and Transport allowances during holidays. Whenever the "Date" column reaches any of the PH(Public Holiday) dates, it will automatically add 1 unit of Meal and Transport allowance to the individual column. I tried to make the formula myself but I cant seem to make it work. Please provide assistance.
    Last edited by gloom52; 09-10-2009 at 04:34 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Meal and Transport Allowances on Public Holidays

    Do you have the Holidays listed somewhere in the workbook?

    If not, create the list and name it Holidays, through Insert|Name|Define

    Then within your current formula, you would add something like

    =Your_current_fourmula+If(isnumber(match(D2,holidays,0)),1,0)

    where D2 contains the date to check....

    If still not of use... post workbook detailing your requirement
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    09-02-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Meal and Transport Allowances on Public Holidays

    This is the file to my problem
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-02-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Adding a Meal and Transport Allowances on Public Holidays

    It worked thx very much

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Adding a Meal and Transport Allowances on Public Holidays

    so where am i looking? I see also two sets of holidays?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Adding a Meal and Transport Allowances on Public Holidays

    Well i guess you are looking at columnsI and J of each sheet...

    I am still unsure of which holiday list you use... but select one list and go to Insert|Name|Define and then name it Holidays...

    Then in the formulas you have currently in I2 and J2, add

    +IF(ISNUMBER(MATCH(A4,Holidays,0)),1,0)

    and copy down
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0