• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

ESIC Calculation by vlookup [SOLVED]

chintan_1985

New Member
I have the following data of basic payment range (in column A) and ESIC decuctible in column B:

[pre]
Code:
A             B
1  0-1000         50
2  1001-3000      100
3  3001-5000      150
4  >5000          300
Employee      Basic         ESIC Decuctible
Raj           3000
Ramesh        5010
Raviraj       800
[/pre]
I want ESIC decuctible amount by using vlookup(). Can you suggest how? I am totally blank this time...why I don't know
 
Chintan


Instead of putting ranges like 0-1000 simply put 0

then use a VLookup


eg:

[pre]
Code:
0	50
1001	100
3001	150
5000	300	

Employee	Basic	ESIC Decuctible
Raj		3000	100
Ramesh		5010	300
Raviraj		1000	50
[/pre]
The Vlookup will be : =VLOOKUP(B8,$A$1:$B$4,2)
 
Hi,


Thanks you for the promopt reply,


In this case where the basic payment is not excactly the same as per ESIC scale, then vlookup() will not working.


I would request you to guide me to formulate vlookup() for the range function.


Thanks sir!!!
 
Hi chintan_1985,


Hui's formula will work for the range. eg for this:

[pre]
Code:
A	B	C	Value
1	0	1000	50
2	1001	3000	100
3	3001	5000	150
4	5001	10000	300[/pre]

=VLOOKUP(120,$B$2:$D$5,3)


..replace 120 for any value between 0-10000.


Regards,
 
Hi chintan_1985,


If cap mean that if you enter a value beyond 10000 you should get nothing then try following:


Code:
=IF(E1>10000,"-",VLOOKUP(E1,$B$2:$D$5,3))


Regards,
 
Back
Top