=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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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