If Formula For Text, What Do I Need To Change?

rockyw

Well-known Member
Joined
Dec 26, 2010
Messages
1,196
Office Version
  1. 2010
Platform
  1. Windows
I'm using this for numbers right now, if I'm looking for text it will not work. What would need changed for text? Thanks for any help.
Code:
=IF(T20=0.0082,5.2554,IF(T20=0.0085,5.4248,IF(T20=0.0084,5.3683,"")))
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Please show what you currently have (that doesn't work) - the same principle can be used for text so without seeing what isn't working it is difficult to advise.
 
Upvote 0
I have this right now..
=IF(H20=MMKL,16.50,IF(H20=MMKT,17.50,IF(H20=MMNY,18.50,"")))
H20 is a merged group (H20-M20) Is that messing it up? And also the result will be a cost, $18.50 ect
 
Upvote 0
You need quotes around Text Values
=IF(H20="MMKL",16.50,IF(H20="MMKT",17.50,IF(H20="MMNY",18.50,"")))
 
Upvote 0
Works great, I remember reading that some where now. Thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,915
Members
448,532
Latest member
9Kimo3

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