Help with simple formula

M

Mike Kiekover

I have the following formula to generate a full product number

=CONCATENATE(B13,"-",C13,"-",D13,"-",E13)

My dilemma is that I need to modify it so that the final - and E13 will only be associated if E13 contains a value. At least I think that sounds simple, just not sure about the exact string I need.

Mike K
 
N

Nick Hodge

Mike

How about

=CONCATENATE(B13,"-",C13,"-",D13,IF(E13="","","-"&E13))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/

FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk

I have the following formula to generate a full product number

=CONCATENATE(B13,"-",C13,"-",D13,"-",E13)

My dilemma is that I need to modify it so that the final - and E13 will only be associated if E13 contains a value. At least I think that sounds simple, just not sure about the exact string I need.

Mike K
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top