sivasankar
New Member
- Joined
- Dec 15, 2014
- Messages
- 2
Hi,
Please find the following data of 12 sheets (12 months) and i have named each sheet like jan, feb, mar, .....& Dec.
<colgroup><col><col><col><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col><col><col><col><col></colgroup><tbody>
</tbody>
And i am trying to add the values based on emp code from all sheets into another sheet. I have tried with VLOOKUP and its working if the emp code is exists in those months / sheets. if emp code is not there it is giving error #N/A.
the code which i have tried is
=+VLOOKUP(B7,apr,26,FALSE)+VLOOKUP(B7,may,26,FALSE)+VLOOKUP(B7,jun,26,FALSE)+VLOOKUP(B7,Jul,26,FALSE)+VLOOKUP(B7,Aug,26,FALSE)+VLOOKUP(B7,Sep,26,FALSE)+VLOOKUP(B7,Oct,26,FALSE)+VLOOKUP(B7,Nov,26,FALSE)+VLOOKUP(B7,Dec,26,FALSE)+VLOOKUP(B7,Jan,26,FALSE)+VLOOKUP(B7,Feb,26,FALSE)+VLOOKUP(B7,Mar,26,FALSE)
please help me in simplifying the code.
thanks in Advance.
Siva Sankar
Please find the following data of 12 sheets (12 months) and i have named each sheet like jan, feb, mar, .....& Dec.
<colgroup><col><col><col><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col span="2"><col></colgroup><tbody> </tbody> |
<colgroup><col><col><col><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col><col><col><col><col></colgroup><tbody>
</tbody>
And i am trying to add the values based on emp code from all sheets into another sheet. I have tried with VLOOKUP and its working if the emp code is exists in those months / sheets. if emp code is not there it is giving error #N/A.
the code which i have tried is
=+VLOOKUP(B7,apr,26,FALSE)+VLOOKUP(B7,may,26,FALSE)+VLOOKUP(B7,jun,26,FALSE)+VLOOKUP(B7,Jul,26,FALSE)+VLOOKUP(B7,Aug,26,FALSE)+VLOOKUP(B7,Sep,26,FALSE)+VLOOKUP(B7,Oct,26,FALSE)+VLOOKUP(B7,Nov,26,FALSE)+VLOOKUP(B7,Dec,26,FALSE)+VLOOKUP(B7,Jan,26,FALSE)+VLOOKUP(B7,Feb,26,FALSE)+VLOOKUP(B7,Mar,26,FALSE)
please help me in simplifying the code.
thanks in Advance.
Siva Sankar