PritishS
Board Regular
- Joined
- Dec 29, 2015
- Messages
- 119
- Office Version
- 2007
- Platform
- Windows
Dear Sir,
I have a formula based on which one excel cell changes value based on other cell value. The formula I am using
If I enter a value in I38 cell in J38 its gives value.
Problem is, I am not getting the which I set for 7.5, 12.5, 15.
For example:
If I38= 2.5 then J38=0.02564
If I38= 3 then J38=1.03093
If I38= 5 then J38=0.05263
Now If I38= 7.5 should return in J38=0.08108
Instead of that it is showing J38= 0.05263 ( which is value for '5')
Similarly for I38= 12.5 then J38= 0.02564 ( which is value for '2.5')
for I38= 15 then J38=0.05263 ( which is value for '5')
I assume it is happening because SEARCH function finding a partial match.
Is there any way I can check for exact match, so my formula will return value according to the selection?
Thanks and regards,
PritiS
I have a formula based on which one excel cell changes value based on other cell value. The formula I am using
Code:
=IF(ISNUMBER(SEARCH("2.5",I38)),"0.02564",IF(ISNUMBER(SEARCH("3",I38)),"1.03093",IF(ISNUMBER(SEARCH("5",I38)),"0.05263",IF(ISNUMBER(SEARCH("7.5",I38)),"0.08108",IF(ISNUMBER(SEARCH("10",I38)),"0.11111",IF(ISNUMBER(SEARCH("12.5",I38)),"0.14286",IF(ISNUMBER(SEARCH("15",I38)),"0.176470",IF(ISNUMBER(SEARCH("20",I38)),"0.25",""))))))))
If I enter a value in I38 cell in J38 its gives value.
Problem is, I am not getting the which I set for 7.5, 12.5, 15.
For example:
If I38= 2.5 then J38=0.02564
If I38= 3 then J38=1.03093
If I38= 5 then J38=0.05263
Now If I38= 7.5 should return in J38=0.08108
Instead of that it is showing J38= 0.05263 ( which is value for '5')
Similarly for I38= 12.5 then J38= 0.02564 ( which is value for '2.5')
for I38= 15 then J38=0.05263 ( which is value for '5')
I assume it is happening because SEARCH function finding a partial match.
Is there any way I can check for exact match, so my formula will return value according to the selection?
Thanks and regards,
PritiS