LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
FJ FJ is offline
external usenet poster
 
Posts: 90
Default CONCATENATE IF macro or function?

Hi, Im using the following formula to pull data from several worksheets onto
another worksheet:
=CONCATENATE("Product 1: ",Sheet1!A1,"
","Product 2: ",Sheet2!A1,"
","Product 3: ",Sheet3!A1)

This gives me the following result, assuming that the data in A1 on Sheets
1, 2, and 3 was Apples, Oranges, and Pears, respectively:
Product 1: Apples
Product 2: Oranges
Product 3: Pears

This works fine. The only problem is if there were no data in, say, cell A1
on Sheet3. Then my results would look like this:
Product 1: Apples
Product 2: Oranges
Product 3:

I would like to use a formula or a macro that would allow me to do a sort of
€śconcatenate if€ť type of thing, so that if a cell is blank, it would not
concatenate the €śProduct€ť part. Im not sure if this can be done with a
regular Excel formula. I thinking it might need a user defined function or a
macro, if its possible at all. Can anyone help? Thanks in advance for any
information.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the concatenate function BIAKathy Excel Discussion (Misc queries) 3 January 8th 09 11:46 PM
CONCATENATE/& Function ? Ash Excel Discussion (Misc queries) 5 February 23rd 07 04:57 PM
Concatenate Function BenG Excel Discussion (Misc queries) 3 September 21st 06 10:08 PM
concatenate function Nospam Excel Programming 2 July 22nd 06 07:00 PM
Concatenate function in vba camerons New Users to Excel 3 June 15th 05 12:09 AM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"