PC Review


Reply
Thread Tools Rate Thread

Combining text from multiple cells

 
 
mgerken79
Guest
Posts: n/a
 
      12th Apr 2010
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 With Quote
 
 
 
 
mgerken79
Guest
Posts: n/a
 
      12th Apr 2010
Actually I don't want them to combine the blank cells either. So just ones
that contain "High Yield" or "Low Yield". Is that possible?

"mgerken79" wrote:

> 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 With Quote
 
Tom Hutchins
Guest
Posts: n/a
 
      12th Apr 2010
I'm not sure exactly what you want to see in your output. Try these:

=SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/
/","/ /")," Q "," ")

=SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/ Q
/","/"),"/ /","/")

Those are two separate formulas. They may have wrapped from being posted on
the forum. Does one of them do what you want?

Hope this helps,

Hutch

"mgerken79" wrote:

> Actually I don't want them to combine the blank cells either. So just ones
> that contain "High Yield" or "Low Yield". Is that possible?
>
> "mgerken79" wrote:
>
> > 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 With Quote
 
mgerken79
Guest
Posts: n/a
 
      13th Apr 2010
Tom

This first equation is so very close. Thank you for the help. I'm sure I
just want my cake and to eat it too, but this first equation changes the "Q"
into blanks and I want it to return nothing. Is that possible?

Thanks for the help.

Mark

"Tom Hutchins" wrote:

> I'm not sure exactly what you want to see in your output. Try these:
>
> =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/
> /","/ /")," Q "," ")
>
> =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/ Q
> /","/"),"/ /","/")
>
> Those are two separate formulas. They may have wrapped from being posted on
> the forum. Does one of them do what you want?
>
> Hope this helps,
>
> Hutch
>
> "mgerken79" wrote:
>
> > Actually I don't want them to combine the blank cells either. So just ones
> > that contain "High Yield" or "Low Yield". Is that possible?
> >
> > "mgerken79" wrote:
> >
> > > 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 With Quote
 
Tom Hutchins
Guest
Posts: n/a
 
      13th Apr 2010
Is this it (I am still not sure what output you want)?

=SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/
/","//")," Q ","")

Hope this helps,

Hutch

"mgerken79" wrote:

> Tom
>
> This first equation is so very close. Thank you for the help. I'm sure I
> just want my cake and to eat it too, but this first equation changes the "Q"
> into blanks and I want it to return nothing. Is that possible?
>
> Thanks for the help.
>
> Mark
>
> "Tom Hutchins" wrote:
>
> > I'm not sure exactly what you want to see in your output. Try these:
> >
> > =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/
> > /","/ /")," Q "," ")
> >
> > =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/ Q
> > /","/"),"/ /","/")
> >
> > Those are two separate formulas. They may have wrapped from being posted on
> > the forum. Does one of them do what you want?
> >
> > Hope this helps,
> >
> > Hutch
> >
> > "mgerken79" wrote:
> >
> > > Actually I don't want them to combine the blank cells either. So just ones
> > > that contain "High Yield" or "Low Yield". Is that possible?
> > >
> > > "mgerken79" wrote:
> > >
> > > > 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 With Quote
 
mgerken79
Guest
Posts: n/a
 
      13th Apr 2010
Nevermind Tom. Modified your formula and got it!! Thanks alot. I love it
when I get my cake and eat it too.

"mgerken79" wrote:

> Tom
>
> This first equation is so very close. Thank you for the help. I'm sure I
> just want my cake and to eat it too, but this first equation changes the "Q"
> into blanks and I want it to return nothing. Is that possible?
>
> Thanks for the help.
>
> Mark
>
> "Tom Hutchins" wrote:
>
> > I'm not sure exactly what you want to see in your output. Try these:
> >
> > =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/
> > /","/ /")," Q "," ")
> >
> > =SUBSTITUTE(SUBSTITUTE(B3&" / "&C3&" / "&D3&" / "&E3&" / "&F3&" / "&G3,"/ Q
> > /","/"),"/ /","/")
> >
> > Those are two separate formulas. They may have wrapped from being posted on
> > the forum. Does one of them do what you want?
> >
> > Hope this helps,
> >
> > Hutch
> >
> > "mgerken79" wrote:
> >
> > > Actually I don't want them to combine the blank cells either. So just ones
> > > that contain "High Yield" or "Low Yield". Is that possible?
> > >
> > > "mgerken79" wrote:
> > >
> > > > 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 With Quote
 
Don Guillett
Guest
Posts: n/a
 
      13th Apr 2010

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
(E-Mail Removed)
"mgerken79" <(E-Mail Removed)> wrote in message
news:6EB316CE-2C6C-45A9-82D0-(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
combining data in multiple cells adkmayhem Microsoft Excel Misc 1 15th May 2010 09:24 PM
Combining multiple cells into one marti Microsoft Excel Misc 3 22nd Oct 2009 08:52 PM
Combining Text From multiple Cells etc bentley74 Microsoft Excel Discussion 4 21st Jul 2005 10:12 AM
Combining Text from multiple cells under multiple conditions =?Utf-8?B?S05T?= Microsoft Excel Worksheet Functions 2 15th Jun 2005 11:00 PM
Combining Text in Multiple Cells into One =?Utf-8?B?QnJpYW5uYQ==?= Microsoft Excel Discussion 3 16th Feb 2005 11:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 PM.