If cell has YES

darcyfournier

Board Regular
Joined
Nov 21, 2017
Messages
54
If A1 has "Yes" then B1= $45

if A1 is Blank, B1 needs to be Blank as well (no value at all)

This will be 250 rows and not every cell with have Yes so I need the value of those cells to be blank

Can anyone help?

Thanks so much
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
For both of the below, $45 will show up as text. If you want it in a number format, change "$45" to just 45 (no quotes) and use the currency formatting in Excel.

This will keep Col B blank for any value not = Yes in Col A
=IF(A1="Yes","$45","")

Alternatively, you can base your formula on whether or not Col A is blank. If it's blank, Col B will be blank. If there is anything at all in Col A (ie. "yes", "x", "no") it will populate Col B with $45
=IF(ISBLANK(A1),"","$45")


Copy and paste down all 250 rows.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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