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.
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.
This is the file to my problem
It worked thx very much
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks