CONCATENATE Spacing Issue Due To String Lengths

Oct 17, 2008

if you look in Column G you will notice the number on the right side of the column is indented one space too many (for any number that is 6 long in column A).

Is there any way to do an IF C=6 and then have it remove a space from before the number in Column G to have it line up?

View 4 Replies


ADVERTISEMENT

Condition With Different String Lengths

Jan 3, 2008

Is there a formula out there that can check if a cell begins with 1 of a range of numbers of different lengths?

Example does A1 begin with A2, A3, A4, A5 where A2 = 123, A3 = 4567, C3 = 89.

View 9 Replies View Related

VBA Concatenate String & Integer

Sep 19, 2009

I am trying to concatenate some string and integer. It is always for previous month end date, i.e, 7/31/2009 or 8/31/2009.

Here is I have the data now
Profit and Loss for
After running the macro I would like to be
Profit and Loss for 8/31/2009
Here is what I wrote so far which does not work. I am sure there is simpler way to do it. I put the month end date 5 columns to the right for the time being and in the intention after deleting it after concatenation automatically.

For Each cell In Selection

ActiveCell.Offset(0, 5).Value = "=EOMONTH(TODAY(),-1)"
ActiveCell.Offset(0, 5).Activate
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.NumberFormat = "m/d/yyyy"

View 9 Replies View Related

Concatenate String And Date...

Apr 12, 2007

when i concatenate two cells (the word "excel" and today's date), i get
excel 39183...? i would like: excel 4/11/2007

View 2 Replies View Related

Concatenate Cells Referencing Another Tab - How To Get Rid Of 0s In Resulting String

Jan 10, 2014

I am trying to combine text from multiple cells into one cell. I am referencing cells that reference cells on another tab. I have tried several formulas (see attached) but I have not been able to get rid of the zeros in the resulting string. I know I could reference the original cells, but I would like to find a solution to this without using VBA.

View 3 Replies View Related

Concatenate String Values With Special Formatting

Jul 28, 2007

i have 2 listboxes with numbers if user has selected choice in both then i want to enable okbutton. i tried in okbutton's mousemove: if listbox1.selected = true AND listbox2.selected = true then okbutton.enabled=true.

View 3 Replies View Related

Excel 2010 :: How To Make Concatenate To Generate A Text String Using Custom Formatted Value Of A Cell

May 2, 2014

I have an Excel 2010 spreadsheet that I am using to save several numbers all in the same column. These numbers can range from the several thousands up to billions. The formatting I am using for these numbers is Number (using 1000s separator).

number_forma.png

I am also using the spreadsheet to generate a text string for each of the numbers. I don't want the text string to show the number as it is, I want to shorten the number by only showing the first few digits followed by a "B" for billion, "M" for million, or "K" for thousand. For example, in the text string I want to show 1,600,000 as 1.6B.

In order to shorten the number I use the cell in the column to the right of each number. This cell uses the following custom formatting (which I found by doing a Google search): [>999999999.999]#.0,,,"B";[>999999.999]#,,"M";#,"K";

custom_format.png

As you can see the formatting is quite complex (at least for me it is) but it does what I want it to do.

Here is a screenshot of what the original and custom formatted cells look like:

custom_formatted_cells.png

As you can see the custom formatting works and does exactly what I wan

The next column (after the custom formatted number) is where I put the generated text string for each of the numbers. As I stated above, I want the generated text to use the shortened version of the number (e.g. 1.6B).

To generate the text I use the CONCATENATE function with a reference to the cell containing the shortened number as one of the arguments. For example:

CONCATENATE("SOME STRING ", B1)

Where B1 is the custom formatted cell.

The problem I am running into is, the text that gets generated doesn't show the shortened format of the number, it shows the full number. Here is a screenshot demonstrating what is happening:

concatenate_formula.png

As you can see the generated text is "SOME STRING 1600000000". This is not what I want. I want the generated text to be "SOME STRING 1.6B".

I think I understand what's going on. When the CONCATENATE function references a cell it takes the actual value of the cell and ignores any formatting. (I suppose formatting is just the way you see the data, not how underlying functions receive the data.)

My question is, how can I re-write the CONCATENATE function (or use another function, etc. available to me) to use the formatted version of the cell?

*UPDATE* I have attached my spreadsheet as an attachment to this post (tackyjan_excelforums.xlsx). Please note that it was created and saved using Excel 2010.

View 8 Replies View Related

Spacing With VBA

Feb 20, 2009

I have the below code that I would like for the data to fall in the exact same space underneath their proper headings. I cant create an html shot for specific reasons and so I am stuck with creating the table in this manner. Does anyone know how to on a single row to accomplish placing date so it looks like a table

10 spaces
20 spaces
30 spaces

that way the number will always fall on space number 10, 20 and 30 on same row

strbody = "Please find attached the daily position report and Profit/Loss report for COB " & FileDate & Application.Rept(Chr(13), 10) _
& "SPREAD " & " UTILIZATION" & " FLAT " & " UTILIZATION" & " OPTION " & " UTILIZATION"

View 9 Replies View Related

Double Spacing

Nov 16, 2006

I have a list with fractions such as 25 1/4, 33 5/16, 20 15/16, etc. i have them formatted as FRACTIONS 2 DIGITS 21/25. Manny of those have double spacing ex: 25 1/2, So i am wondering if theres a way to take the extra spacing off the ones that have double.

View 10 Replies View Related

Spacing Out Data

Dec 28, 2007

I have alot of data with data and time in one column, and temperature in another. All my data is bunched together, i have temperature measurements every 3 minutes, 24 hours a day, for about a month... and then after that, i have temperature measurement 10 minutes a day, 24 hours a day for several months

I want to group my data by hour, so for my 3 minute measurements, 20 values make up one hour. And for my 10 minute measurements, 6 values make up one hour. I want to know if there is a way to space out my data so that it groups it/ spaces it out. So for the 3 minute values, it would list 20, then put say 3 blank rows, then 20 more values, then 3 blank rows etc.... and for the 10 minute values, it would be 6 values, then 3 blank rows, 6 values, then 3 blank rows etc...

View 9 Replies View Related

X-axis Spacing

Sep 10, 2008

I have 10 items on my x-axis. Is there a way to space item 10 further apart than the other 9?

View 9 Replies View Related

Extra Spacing

Oct 31, 2008

In the below example each of the items listed in Row A have an extra space before the word, is there an easy way of taking that space out i've tried text to columns, paste special. Not sure what else can be done ...

View 9 Replies View Related

Spreadsheet Row Spacing

Jan 16, 2009

Spreadsheet

aaa hhh
111 222
ww lllmm

between here there are about 50 rows

zzz 222

I need code that would reduce the spacing too about 10 rows between the "ww" in column A and the zzz in column A.

View 9 Replies View Related

Uneven Spacing On X Axis

Jun 25, 2014

What I need to do is have the numbers on the x axis count up with a even increment. For example, 1,2,3,4,5. That part is easy and I can do that, the next part is not.

Next I need the X axis of my graph to have, what the graph I'm trying to replicate calls, a "squared scale". So the numbers need to look like what is above but be spaced in squared intervals.

It would look something like this: 1 2 3 4 5... note the spacing between each is increasing.

Below are pictures showing how the book does it by hand.

20140625_085909_zps204851fe.jpg
20140625_085922_zpsbc03f1bd.jpg

I think I could get it to look like this with a dummy series with the axis labels listed but I need to be able to have a point read off the actual values so the dummy axis wont work.

View 5 Replies View Related

Spacing Between Missing Sequential Dates?

Feb 12, 2014

how to leaved blank cells for missing dates in a series of sequential dates. For example, If my series is (in (m/d/y) format):

1/10/1999
1/12/1999
1/13/1999
1/14/1999
1/17/1999
1/18/1999

But I want it to be:

1/10/1999
(blank cell)
1/12/1999
1/13/1999
1/14/1999
(blank cell)
(blank cell)
1/17/1999
1/18/1999

How do I do this?

View 1 Replies View Related

Adding Numbers Beween Spacing

Oct 25, 2009

I got a number, OK lets make it every even "5","10", "15" est and i add another one beside it to be added 0.01 every "5" times, so ok i'll make it a bit better some how,

(A1)
lv 1
=1
lv 2
=2
lv 3
=3
lv 4
=4
lv 5---(A2)----(A3)
=5 + 0.01 = 5.01.............

um I had one idea that did and one that did not work, 1. to do it manually or 2. (that did not work) us "=IF function"

View 2 Replies View Related

How To Move Row Content With Uneven Spacing

May 13, 2013

I have a spreadsheet which contains 6000 rows where column A1 lists a name, B1 an address, C1 an amount and B2 the 4-digit zip code and place. Now I want to move the content of B2 to D1. I can't use offset because the spacing of the zipcode cell is not always the same.

View 4 Replies View Related

Spacing Error With Email Macro

Dec 19, 2009

The email macro I set up didn't work when I referenced the sendto from a cell in sheet 2; I changed it to reference an email address on sheet 1 and it worked with spacing errors. I need to fix the spacing errors, and I need to be able to pull the email from sheet 2. Code referencing sheet 2:

View 3 Replies View Related

Column Of Data Spacing - Each Value Separated By Two Spaces

Jan 31, 2013

I have a column of data. I would like to space this out so that each value is separated by two spaces.

E.g.

1
2
3

-->

1


2


3

I can do this manually (by inserting two cells), but I wondered if there is a way to do this automatically?

(I have a column organised with the spaces immediately to the left of the column I want to change.)

View 2 Replies View Related

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

Spacing Multiple Variable Paragraphs In A Merged Cell

Jun 19, 2009

I am using excel as a base for formatting reports, and collating logical paragraphs, which I want to display in one massive merged cell on another worksheet.

The paragraphs are different for each report, and I do not wish to manually enter them in each time. I also want them to display as seperate paragraphs on the page, but in the same cell.

To throw a spanner in the works, the paragraphs are all of indeterminate length, otherwise, I could use different cells. If I combine them in the massive merged cell by using =cell1&cell2&cell3 then they will just appear merged as one whole huge paragraph. I want them to appear as separate paragraphs in the same big cell.

View 4 Replies View Related

How To Convert Excel Data To Notepad With Desired Spacing

Sep 6, 2012

If my file is like so

A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3

i NEED THE OUTPUT IN NOTEPAD

A1B1 C1 D2 E1
A2 B2 C2 D3E2

The spacing varies from row to row

if i am saveing as notepad file....in macro how can i give the spacing properties give an example macro and i will customize it according to my need

View 2 Replies View Related

Copy Column Information On One Sheet And Post To A Row With Spacing

Feb 28, 2013

I have been able to produce a column that gives me key date information. I might have many empty cells in that column before it hits another date. I need to get this data over to another sheet and place it in a row.

I am trying to get it to look like this:

B2(value), C2(value),D2(blank),E2(Value),F2(Value),G2(blank) etc depending on how many more elements are found in the sheet.

I am able to find topics that allow me to copy a range of data but not one that will allow me to copy a range then skip a cell.

View 4 Replies View Related

Text To Columns Macro For Irregular Spacing Of Data

Mar 1, 2010

i have written a macro to parse data in to four columns using the text to columns fixed width option, but unfortunately the data i get changes its spacing and configuration every day, meaning that the fixedwidth columns dont separate the data correctly. below is how it looks some of the time.

46632hac5 Jpmcc 2007-ld12 a5 19,340,005 315
0738qac5 bscms 2007-pw17 a5 23,142,005 265
61746wcz5 msdwc 2000-prin a5 3,600,005 305
32108hp75 bacm 2007-2 a5 2,000,005 465
46630edf5 lbubs 2006-c1 a5 1,000,005 285...............

View 9 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

Excel 2010 :: Difficult Time Spacing Series Bar Graphs

Jul 6, 2014

I've been trying to get a graph that looks like the image below for a while now and can't seem to get it to appear how I want. I am looking to duplicate it exactly, but the issue I'm having is getting the individual bars to be separate and appropriately spaced.

[URL] .....

View 7 Replies View Related

Excel 2010 :: Change Spacing Between Dates In Pivot Table?

Mar 27, 2013

I have a pivot table with dates along the x-axis. The data is spread out over 5 years and the spacing between sampling events is not even, therefore, the spacing of my x-axis dates is not even. I want the x-axis to look similar to a normal graph where there is equal space between each month, even if I don't have data for each month. I do not want to group the data to accomplish this. If I click the "show items with no data" it only shows one extra day, not all days or even all months. I have excel 2010.

View 2 Replies View Related

Optimize Cut Lengths

May 20, 2009

I have a given length of steel bar...Example(550 feet)

I have various cut lengths that I can pick from...
14'-10".....13'- 9".. 12'-8"........(up to 6 different lengths)

I need to know the best combination of lengths to cut the long bar into to have minimal scrap left when we get to the end of the 550 feet.....

Cut as many of the longest cut lengths possiable.....Cut as few of the shortest cut lengths possiable

Due to the fact that I will have to convert this to a PLC application when completed, I want to find a mathmatical way to do this inside excel and not use the "solver"....Assuming that I/we can come up with an equation to do this .....

View 14 Replies View Related

Finding Out Whether 4 Lengths Are Equivalent

Aug 18, 2009

I have 4 lengths in four columns in a random order, and need to compare them to see whether they are equal lengths.

I Have figured out how to order them so I can compare them, but can't think of a formula to show whether they are equivilent (eg 1000m = 1km) True or False outcome is fine.

View 3 Replies View Related

Sorting Columns Of Different Lengths

Oct 15, 2009

I have three columns, one column is time every two seconds with data associated that time, and one is time every minute with an associated tidal height.

I want to sort my data so that for every 2 seconds I have an associated tidal height for that minute.

eg:
what I have:
Time Time Tidal Height
(2 sec intervals) (min) (meters)
1:15:00 1:15 1.342
1:15:02 1:16 1.221
1:15:04 1:17 1.115
...
1:15:58 1:43 0.024
1:15:60 1:44 0.012
1:16:00 1:45 0.008 ....................

View 2 Replies View Related







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