"If" formula

PTori82

Board Regular
Joined
Dec 5, 2012
Messages
64
I'm trying to get excel to display the numerical value "000" if an associated cell has the text value of "CLR". An example of my workbook:
Cell F5 has the numerical value "110". Cell F6 has the text value "CLR". What I want to do is this: In column G I want the values entered in column F repeated, except that if the text value in F is "CLR", I want the value in column G to say "000". Thank you!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
=if(f6="clr",000,f6)
note that you will have to high light the range g and push Ctrl +1 and go to number -> custom and where it says "general" type 000
 
Upvote 0
Thanks, man! That worked perfectly. I don't know why I get hung up on the "IF" fromula, but I'm learning!
 
Upvote 0
Good call. I've run into that problem in my journey to create the ultimate quality assurance workbook. Thanks for sharing that.
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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