Showing Formula Result as plain text value

markswjh

New Member
Joined
Aug 31, 2020
Messages
21
Office Version
  1. 365
Platform
  1. Windows
I have a cell with the following formula

=IF(D5="H","1.5",IF(D5="M","F2.8",IF(D5="L","F2.2",IF(D5="",""))))

this gives a child's expected grade.

I then need another cell to work out the numeric value of that grade with vlookup:

=VLOOKUP(G5,Sheet2!$A$2:$B$14,2,FALSE)

That Vlookup uses the following table to work out the value of the cell.

1656323689306.png


I am assuming that Vlookup doesn't like working with a base value that is the outcome of a formula, so I have attempted to show the outcome of the If formula in another cell using either a =text(G5,0) formula or a =value(G5). The value formula defaults to a #VALUE error every time the student's grade value changes and the text formula keeps rounding the result (if the child scores a grade 1.5 it lists it as 2.

This then throws off the next formula I am running.

Any help on a formula to show the exact value of the original cell without throwing up endless errors and rounding would be invaluable!

Thank you!

Images below:

1656324256831.png


1656324396658.png

Fine with one value but if the value changes:

1656324480600.png


Thank you!!
 
Try using
Excel Formula:
=IF(D5="H",1.5,IF(D5="M","F2.8",IF(D5="L","F2.2",IF(D5="",""))))
that way the 1.5 is a number & not text.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top