=IF(A2 Not "","MSRP: $ " + A2 ) not working

MaximumGravity

New Member
Joined
Apr 16, 2002
Messages
29
Hi all,

I am trying to write a function (maybe I need a macro or VBA code) that will look at the value of a cell, if it is not blank, append the cell to read "MSRP: $" + the value of the cell - hence
Code:
 =IF(A2<>"","MSRP: $ " + A2 )
But this isn't working. This is going to be used to mail merge into word. And if there is no MSRP for a given field, we don't want the words MSRP to appear with a blank afterwards.

For any MS Word gurus, if ther eis an easier way to do this from within word, let me know.

Thanks in advance
Russell

PS HTML tags getting interpreted by "<>" in title
This message was edited by MaximumGravity on 2002-08-29 12:21
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about this ...

If A2 contains the value in question, put this formula in B2

=IF(ISBLANK(A2),A2,"MSRP $"&A2))
 
Upvote 0
While we're handing out alternatives.
I think this would do the trick also.

=IF(A2="","","MSRP: $ " & A2)
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

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