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

#### rockyw

##### Well-known Member
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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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.

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

You need quotes around Text Values
=IF(H20="MMKL",16.50,IF(H20="MMKT",17.50,IF(H20="MMNY",18.50,"")))

Works great, I remember reading that some where now. Thanks for the help.

Replies
4
Views
134
Replies
5
Views
193
Replies
1
Views
194
Replies
0
Views
213
Replies
4
Views
355

1,196,358
Messages
6,014,786
Members
441,847
Latest member
hw407

### 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.

### Which adblocker are you using?

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

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