If / Concatenate Into One Cell

Nov 14, 2008

I have 6 columns:

A1 = LastName
B1 = FirstName
C1 = LastName2
D1 = FirstName2

I need to concatenate into 1 cell so it looks like this: FirstName LastName;FirstName2 Last Name2. Now the challenge is that there are many instances where C1 and D1 are blank (don't have values).

So here was my attempt at a formula:
=IF(A1>""&B1>"",CONCATENATE(B1," ",A1))& IF(C1>""&D1>"",CONCATENATE(";"&D1,"",C1),"")

Now this works, but it ALWAYS leaves a semi colon at the end (even when there is no C1 and D1 to concatentate. Thus I put in my IF statement the "".

View 4 Replies


ADVERTISEMENT

Concatenate Duplicates: Concatenate Results Of All Equal P/N's From Any Given List

Oct 6, 2007

I have a list of P/N's that are used in more then one location. and it's sorted by P/N's.

ColA__ColB__ColC
______Loc___PN
______1_____A
______2_____A
______3_____B
______4_____C
______5_____C

I Want to be able to put in Col A the concatenate results of all equal P/N's from any given list. Or at least select the few cells that i know are duplicates and from that copy the Location to a single Column.

ColA ColB__ColC
______Loc__PN
1,2____1___A
_______2___A
_______3___B
4,5____4___C
_______5___C

View 5 Replies View Related

Concatenate Non Blank Cells But Use Concatenate And Substitute Instead Of IF

Aug 11, 2013

Sampling table :

one
two
three
four
one
two
three
one
two
one

Desired results obtained via IF =IF(B2>0,A2&" , ",A2)&IF(C2>0,B2&" , ",B2)&IF(D2>0,C2&" , ",C2)&IF(D2>0,D2,"")

one , two , three , four
one , two , three
one , two
one

Is there any smarter, shorter formula via Concatenate and Substitute or other formulas ?

My closest match, but not good enaugh is =SUBSTITUTE(CONCATENATE(A2&", "&B2&", "&C2&", "&D2), ", , ", " ")
[ returna 2 commad ]
one, two, three, four
one, two, three,
one, two
one ,

View 9 Replies View Related

Concatenate IF Cell Is Not Empty

Dec 4, 2013

I have been sent a very large file of product data from one of my suppliers, They sent all of the details in separate fields (for example, colour, height, width, depth, material etc)

I have processed all these columns to appear how I want them, but now need to join them together so they can all be added to my main description. I want each one to be on a new line when it's displayed on my website, so I'll be adding a <br /> tag (break tag) after each item. This I can do no problem.

This would all be fine, if all the columns contained data, but a lot of the time the columns do not contain data (eg. I have a column for "knife length" but not all of my products are knives, so not all of them require this information"

for example, I have something like:

SKU | Colour | height | width | depth | material
ABC | blue | 50mm | 10mm | 60mm |
BCD | | 80mm | 75mm | 30mm | wood
CDE | red | | | | plastic

I could use something like :

=CONCATENATE($A2, " <br /> ", CHAR(10),$B2, " <br /> ", CHAR(10),$C2, " <br /> ", CHAR(10),)

This however means writing a piece of code for each cell I want to join, My cells go from range "O2" to "DW2", I don't fancy writing that for every single column!! Also, it means that If I have some empty fields, it will still add a break tag, this will look very odd on my site.

I really need a way of writing into the function "include if cell contains data" for each cell. If it doesn't contain anything, skip it and move to the next. (the char(10) in this just gives me a line break in excel so I can see what it'll look like when it's exported)

View 6 Replies View Related

Concatenate Based On Cell Value

Apr 29, 2009

Using Excel 2007. Can I use IF along with CONCATENATE.
=if(h26<.0099(concatenate(ak26,AK27))if(h26>.010(concatenate(ak26,aQ26,ak27))
Can't seem to get the proper syntax.

View 5 Replies View Related

How To Concatenate Infinite Cell

Dec 23, 2013

How to concatenate the infinite cell in one cell. See the attachment .

I need the data in column A ...

Attached File : abcd.xlsx‎

View 10 Replies View Related

Concatenate Partial URL With Cell Value

Mar 31, 2014

I am making a table in excel where I list video games and I would like to place a hyperlink in line with them to open a search page on eBay, I've made a URL-friendly cell (replacing the spaces with + signs, like they do on the URL.

Example table:

game title
game+title
Check

On the "Check" cell I would like a hyperlink that contains the value of the cell saying "game+title" (supposing that is cell B2), i.e:

[URL]....

How would I go about it?

View 2 Replies View Related

Concatenate The Cell Values

Jul 15, 2008

I am trying to merge three cells using the following formulae =CONCATENATE(A3,": ",B3,", ",C$1,", ",C3,"") where C$1 is a title (header) I will use if C3 is populated. However, I would like to leave C$1 out if C3 is not populated.

View 9 Replies View Related

Concatenate All The Cell Content From A Column In One Cell

Feb 27, 2007

I would need to concatenate all the cell'content from a column if the value is different from null ("") in just one cell separated by ";" ... By ex :
In column A I have :
A1-""
A2-X
A3-""
A4-y
In cell B1 I should get "X;Y"

View 9 Replies View Related

Eliminating Empty Cell In Concatenate

Aug 6, 2014

Eliminating empty cell in the concatenate. I am concatenating many cell together. Example is Column A has a word " Starter" Column B is the type of tractor it fits " Case" Column C thru E have other names IE John Deere, Ford only if the part fits more than one type of tractor. In my final Concatenate i end up with many comma's and nothing follows. I have placed a ", " in between each reference of the cell. If the cell is 0 or null. I want the concatenate to ignore the cell and extra commas.

My current function reads + Concatenate(A1,", For ",B2,", ",C2,", ",D2,", ",E2)

What I have now.
Starter, For John Deere, , , , , , , .
Starter, For John Deere, Ford, , , , , , .

What I wish is.
Starter, For John Deere, Ford.

View 2 Replies View Related

If Cell Has X Turn Into Number And Concatenate

Jul 4, 2009

Example is in the attch: Book11.xls. This formula works but if there is no number 4 then I don't want comma after 1, or 2, or 3, How avoid it:

results

1,2,3,4
1,2,
1,2,3,
3,4
1,
4
2,3,

(red , need to be removed)

View 5 Replies View Related

Different CONCATENATE Rules Depending On Cell Value

Oct 28, 2009

I'm trying to do a CONCATENATE function in Excel 2003. The first part of the function (this is working correctly) is a) concatenating 4 cells from a different worksheet (WB_NEW) into one cell and is b) putting a space in between each entry:

=CONCATENATE(WB_NEW!AH3," ",WB_NEW!AI3," ",WB_NEW!AJ3," ",WB_NEW!E3)

What I'm now trying to do is enhance this function to perform with 2 separate concatenation rules i.e. "if one of the cells specified above is blank, concatenate a different set of cells".

View 5 Replies View Related

Concatenate A Range Rather Than Click Each Cell

Feb 3, 2009

Can you concatenate a range. I want to join 30+ cells together but dont want to click on every one?

View 10 Replies View Related

Concatenate Email Addresses Into One Cell

May 29, 2009

I have a list of email addresses. They are in column A.
The 1st email address is in cell A5 and goes down until a blank cell is reached.

QUESTION: Is there a limit on how many email addresses can be contantinated together ? I can limit the number if necessary.

The contantinated list should be placed into cell A1.

View 7 Replies View Related

CONCATENATE The Contents Of Cell VERTICALLY

Apr 19, 2007

is it possible to concatenate the contents of several cell vertically into a single cell? like using (e.g. B47&B48&B49&B50&B51&B52) in a statement but make it vertical? and make some parts blank if it does not contain data.

(CODE)=IF(AND(A45=”1”),*CONCATENATE VERTICAL B47 to B52*, IF(AND(A45=”2”),*CONCATENATE VERTICAL D47 to D52*, IF(AND(A45=”3”),*CONCATENATE VERTICAL F47 to F52*,””)))

(please see attached file for reference)

View 9 Replies View Related

Combining Formulas In A Cell And Concatenate

Feb 18, 2010

I am trying to combine this formula with another formula but I cant get it right.
I have multiple worksheets that feed into 1 so I am using this formula to pull in the info.

=II.MissionCritical!C20. This info is a title like "Writing".
=II.MissionCritical!C23. This info is a yes or no.

So I need the =II.MissionCritical!C20 formula to also say if c23 is no add an *** to the front of the title. so the title would look like "***Writing". and if C23 is yes leave the title as is.

View 2 Replies View Related

Concatenate From A Range To A Single Cell

Jan 18, 2011

Here is the set up:

I have a calendar sheet where the dates go down the rows, and there is one column per member of staff. The staff is split in to three streams (different apps to cover, etc).

In the calendar, we mark a "C" for when someone will be on-call, R for when they will be doing a release, and so on.

In a separate sheet in the workbook, rather than having people look at the whole calendar of 30+ people to see who is on what shift for a given stream, I have an On-Call Rota where the rows are again the dates, and the columns are the streams. In each cell of this sheet, there should be the names of all the people of that stream who will be on-call for that date, so a concatenation of the actual staff members from the calendar, separated by CHAR(10).

I have been unable to find a combination of INDEX, MATCH, LOOKUP, VLOOKUP, etc, etc that gets me past the main problem: they only ever match the first C (or the first R for the On-Release Rota). I can't get a formula for a single cell in the rota that will return all the names where there is a C in the calendar in such a way that I can concatenate them.

Here is the kind of thing I have had to do .....

View 7 Replies View Related

Function To Concatenate Cell Values

Jan 10, 2012

I need to concatenate all cells filled out in a column (for example A in sheet1) in a cell in sheet2. More exactly.

column A (Sheet1) (Sheet2)
aaaa cell(2,2)=aaaabbbbcccc
bbbb
cccc

If I use a VBA macro I can write this VBA code

RowsNumber = Application.CountA(Sheet1.Range("A:A"))

Then loop from 1 to RowsNumber and concatenate values in cell(2,2) but I need, if this is possible, to define a FUNCTION (nested functions) in cell(2,2).

View 2 Replies View Related

Concatenate: The Cell Remains Empty

Apr 26, 2006

After I run this macro, the cell remains empty. Any thoughts.

'Vary1 is some cells name
'Vary2 is some cells name
Dim AdjustFactorAddress As String

Set adjustmentfactor = Worksheets("Sheet 2").Cells(4,5)
AdjustFactorAddress = adjustmentfactor.Address()
Selection.Offset(1,2).Formula = "= ROUND(Vary1*Vary2*R[2]C[4]*'Sheets 2!'" & AdjustmentFactorAddress & ", 2)"

View 4 Replies View Related

Concatenate Date And Text In A Cell

May 2, 2007

I am trying to concatinate a cell to show both text and date (in format mmmm dd yyyy) using a vlookup from another worksheet.

Below is the coding I have in the cell:
="High Importance Request - effective " & VLOOKUP(1,'Fuel Surcharge Key Dates'!$A$6:$E$65536,2,FALSE)

The result I get in the cell from the formula is: I still get it to come out to 39327 instead of June 4 2007

The vlookup in the formula above retrieves a date that has a cell custom formatted to mmmm d, yyyy ... as this cell is not a date that is entered by a user but is further retrieved by another vlookup of dates. Even if I place the VLOOKUP in cell A3, reformat that cell to be a date and change the coding in the formula to:
="High Importance Request - effective " & A3. I still get it to come out to 39327 instead of June 4 2007

View 6 Replies View Related

Concatenate Text From Left & Right Of Cell With Another

Mar 10, 2008

I'm working with a datafeed and basically I have a column with the prices of each product in the same row. What I need to do is take the value in the price column and insert it in a specific spot of a different cell (but still on the row).

A1 = <b></b>
B1 = 29.99

How would I get that price information between those two bold tags, and do this for all the rows I have that contain specific price info to that row?

I have a lot of HTML in the line I want to bring the price over to and I have tried the following formula at the beginning cell of A1 ="<b>"&B1&"</b>" but I get an error.

View 9 Replies View Related

Vlookup & Concatenate (Vlook A Value From A Cell In Another Workbook)

Mar 20, 2009

I want to Vlook a value from a cell in another workbook then before I get the formula result I would like it to concatenate the result with another cell.
I have attached an example

AlEXAMPLE.xls

View 2 Replies View Related

List Of Email Addresses That Need To Concatenate Into One Cell

Jan 17, 2013

I've got a list of over 170 names in excel rows that I need to quickly turn into a copy and paste list that I can mass email some of my sales people.

Example:
Amyp@emailaddress.com
Treverp@emailaddress.com

I need to combine the names and separate by a semi colon: Amyp@emailaddress.com; Treverp@emailaddress.com

I started a concatenate formula, but because each name is on different row, it was a lot of manual formula tweaking.

View 3 Replies View Related

Concatenate Cell With Customized Number Of Zeros

Sep 20, 2013

I have a sheet where some data is entered in A1 to C1 and i use concatenate to string them together. The problem is in cell C1, where I used cell format to customize the number of zeros in front of the number.

EG:
A1: Photos
B1: 2013
C1: 00001

the concatenate result is Photos2013\1, instead of the desired result of Photos2013\0001.

View 3 Replies View Related

Concatenate Or Combinate Number A Cell Into Other Cells

Sep 19, 2006

How do I get my number in one cell to show all possible combinations of it in other cells. (e.g. cell B4 = 123, now i need cells C4:H4 to display all 6 combinations of the number as follows: 123, 132, 213, 231, 312, 321). Attached is a sample file.

View 3 Replies View Related

Concatenate Formula Referring To Cell In Another Workbook

Feb 9, 2007

"Smith B" is text in C1.

My current formula in C3 is a simple reference to a cell in another workbook:

=+'Z:Time Records2007[Smith B.xls]Daily Time'!$C1352

I would the formula to refer to C1 to get the "Smith B" part.

This would allow me to copy the formula to the right and reference different text as it looks at D1, E1, F1, etc.

To say it another way. I want to know if there's a way to make a formula that would result in looking at the file Smith B.xls by inserting a refernce to C1 in it?

=+'Z:Time Records2007["C1".xls]Daily Time'!$C1352

View 5 Replies View Related

Concatenate Cell Values & Display On Userform

Sep 24, 2007

is there a way that i can insert cell values in a userform
i have data which needs to be displayed on 33 lines
line 1 cell value from d10 then space cell value from d185 then space cell value from d186
this needs to be repeated
line 2 cell value from e10 then space cell value from e185 then space cell value from e186
line 3 cell value from f10 then space cell value from f185 then space cell value from f186
line 4 cell value from g10 then space cell value from g185 then space cell value from g186
this continues trough to line 33

View 7 Replies View Related

Concatenate All Values In Row Into Cell & Seperate With Commas

Dec 10, 2007

I have a bunch of cells (could be varying amounts from 2 to about a 100). I need a macro which can find out how many rows in column A contain values and then i need to pick values from each cell in column A and put them in Cell B2 seperated by a comma.
eg.
Column A Column B
22 22,35,67,34,56
35
67
34
56
Column A could contain as many as 100 values.

View 5 Replies View Related

Concatenate Function To Cell Macro Code

Mar 8, 2008

Need to take column J20:J255 and column K20:K255 and concatenate into activesheet K20:K255. This needs to happen when OptionButton1.Value=True. The information in each cell will be different. The following code works well, but it will not allow me to put a space in between the two strings.

Private Sub OptionButton2_Click()
Dim DescriptionCell As Range
Set DescriptionCell = ActiveSheet.Range("D20:D54")
If OptionButton2.Value = True Then
With DescriptionCell
.NumberFormat = General
.Formula = "=CONCATENATE('Bill of Materials-3'!F20,'Bill of Materials-3'!I20)"
End With
End If
End Sub

View 2 Replies View Related

Concatenate Formula To Retain Cell Formats

Jun 11, 2008

I have the below concatenate formula and it works for what I need..well, almost. I know I don't have the format cells option when using concatenate, but I need the answers to the formula to come out as a percentage or to two decimal places. I have searched and honestly don't understand how to do this in my formula....

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved