I've have a strange problem. I have two sheets. 1 cell that has this formula to determine percentages and is formatted as a percentage.
=IF(H3>0,(((H2-H3)/H2)),100%)
..this correctly displays percentages in the cell such as 99.90%
Now My search formula looks like this...
=VLOOKUP(H9,Table!$A$2:$B$12,2,FALSE)
And my 2nd sheet named (Table) has a two column list. The first is percentages and the 2nd is the return value, example:
99.90% 1.00
99.91% 2.00
99.92& 3.00
The real problem is the formula above is creating amounts equal to the percentages on the second sheet such as 99.90% but it never matches. I've printed the length of the cell and even though =IF(H3>0,(((H2-H3)/H2)),100%) sometimes the values displayed are exact matches, such as 99.90% but its length is 17. I discovered that it's calculating this percentage from the value 0.999334455577655 or similar and displays the correct 99.90% in the cell, but when it compares this value to my second sheet it's trying to match the 0.999334455577655 instead of the displayed value of the percent formatted cell 99.90%. I know this because I changed my table value from 99.90% to the above number and it then matched.
My question is...Is there a way to format a cell as a percentage and lookup the returned percentage with a table on a second sheet all within the same cell?
=IF(H3>0,(((H2-H3)/H2)),100%)
..this correctly displays percentages in the cell such as 99.90%
Now My search formula looks like this...
=VLOOKUP(H9,Table!$A$2:$B$12,2,FALSE)
And my 2nd sheet named (Table) has a two column list. The first is percentages and the 2nd is the return value, example:
99.90% 1.00
99.91% 2.00
99.92& 3.00
The real problem is the formula above is creating amounts equal to the percentages on the second sheet such as 99.90% but it never matches. I've printed the length of the cell and even though =IF(H3>0,(((H2-H3)/H2)),100%) sometimes the values displayed are exact matches, such as 99.90% but its length is 17. I discovered that it's calculating this percentage from the value 0.999334455577655 or similar and displays the correct 99.90% in the cell, but when it compares this value to my second sheet it's trying to match the 0.999334455577655 instead of the displayed value of the percent formatted cell 99.90%. I know this because I changed my table value from 99.90% to the above number and it then matched.
My question is...Is there a way to format a cell as a percentage and lookup the returned percentage with a table on a second sheet all within the same cell?