LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Default Using Vlookup then interpolate,return corresponding value, if not, return other value

Hi I am working in the following table for returning a corrsponding interpolated value.

Column A

88.6
84.1
98



Pay factor Look up Table.E1:F14

85 70
86 75.5
87 79.7
88 83.5
89 86.7
90 89.4
91 91.7
92 93.6
93 95.4
94 96.9
95 98.2
96 99.2
97 100
Under 85% 0


If the values in column A is any value from 97 to 85 = interpolate/return corrsponding value;
If the values in column A is any value greater than 97 = return 100
If the values in Column A is any value under 85= return 0



I used this formula in B1=
=IF(ISERROR(VLOOKUP(INT(A1),$E$1:$F$14,2,FALSE)*(I NT(A1)+1-A1)+VLOOKUP(INT(A1)+1,$E$1:$F$14,2,FALSE)*(A1-INT(A1))), "100",VLOOKUP(INT(A1),$E$2:$F$14,2,FALSE)*(INT(A1) +1-A1)+VLOOKUP(INT(A1)+1,$E$1:$F$14,2,FALSE)*(A1-INT(A1)))

Which returned the interpolated value of 88.6 from the table 85.4.
But it is returning any value which is not in the look up table as 100.

Can you please help me??
Attached Images
 
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return date if in range, else return blank LisaL Excel Worksheet Functions 1 July 22nd 09 03:23 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null Ben Excel Discussion (Misc queries) 2 March 15th 07 01:02 AM
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM
check if reference exists, then return its value or return 0 doudou Excel Worksheet Functions 1 June 4th 05 09:17 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"