Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Combining text from multiple cells


Option Explicit
Sub stripqSAS()
Dim h As Long
Dim i As Integer
Dim ms As String

For h = 1 To Cells(Rows.Count, "b").End(xlUp).Row
ms = ""
For i = 2 To 7 'col B-G
If Cells(h, i) < "q" And Cells(h, i) < "" Then
ms = ms & Cells(h, i) & "/"
End If
Next i
Cells(h, "i") = Left(ms, Len(ms) - 1)
Next h
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"mgerken79" wrote in message
...
Help please. I'm trying to combine text from multiple cells using the
following formula.
=B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3

Column I is where I am combining what is in these cells.

The above cells contain formulas which I am using to QA certain data.
They
can return things like "Low Yield", "High Yield", and "Q" if the data
meets
the right conditions. I need the individual cells to return each of these
possibilities, which include spaces, but I only want column I to combine
the
ones that are NOT "Q".

Please let me know if you need more info to help. Thanks so much.


Reply
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
Combining multiple cells into one marti Excel Discussion (Misc queries) 3 October 22nd 09 08:52 PM
Combining Text from multiple workbooks rwalrod Excel Discussion (Misc queries) 1 September 9th 08 04:42 AM
Combining multiple columns of text Amber Schellenberg Excel Discussion (Misc queries) 2 October 11th 05 11:45 PM
Combining text from multiple columns into 1 stelee Excel Discussion (Misc queries) 3 July 6th 05 11:04 AM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM


All times are GMT +1. The time now is 05:16 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"