Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to add up string or text together

hi everyone
I have a workbook with 12 sheets in them
it got 11 sheets for 11 employees say Fred Kathy mark so on...
every worksheet has row 30 to 33 to column A to U reserved for employee
comments
A30 to u30 is merged cell so is a31 to u31 and so on.. to type in long lines
of comments
main page adds up all the times they worked
in the main page I want to display comments from all the employee sheets
can you add text or string together like numbers? how do I do this?
thanks
dumi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default how to add up string or text together

If in A1 I have "Hello"
in B1 I have "Dave"

If I use in C1 =CONCATENATE(A1,B1) the formula result is "HelloDave"

Note how A1 doesn't have a space after it, and B1 doesn't have a space
before, so theres no space. You can always do, =CONCATENATE(A1," ",B1) to
give "Hello Dave"


"Dumidu Roshan (Hotmail)" wrote:

hi everyone
I have a workbook with 12 sheets in them
it got 11 sheets for 11 employees say Fred Kathy mark so on...
every worksheet has row 30 to 33 to column A to U reserved for employee
comments
A30 to u30 is merged cell so is a31 to u31 and so on.. to type in long lines
of comments
main page adds up all the times they worked
in the main page I want to display comments from all the employee sheets
can you add text or string together like numbers? how do I do this?
thanks
dumi

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default how to add up string or text together

So you have 3 long rows or 3 large merged cells, for workers to enter comments.
A30:A33 would be the range to look at per employee on each sheet.
Untested, but it should look something like this:

Sub GetComs()
dim i as long, ii as long, ComStr as string
For i = 2 to 12
for ii = 30 to 33
ComStr = worksheets(i).cells(ii,1).value & ": " & ComStr
next ii
'change this to you desired column and row start on sheet 1 if not J3
Sheets(1).cells( i + 2 , 10).value = _
"Comments from " & worksheets(i).name & " " & ComStr
ComStr = "" 'clearing the old comments for the next
next i
End Sub

I've assumed that the sheet name represents an employee's name or ID.


Regards
Robert McCurdy
"Dumidu Roshan (Hotmail)" wrote in message ...
hi everyone
I have a workbook with 12 sheets in them
it got 11 sheets for 11 employees say Fred Kathy mark so on...
every worksheet has row 30 to 33 to column A to U reserved for employee
comments
A30 to u30 is merged cell so is a31 to u31 and so on.. to type in long lines
of comments
main page adds up all the times they worked
in the main page I want to display comments from all the employee sheets
can you add text or string together like numbers? how do I do this?
thanks
dumi

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default how to add up string or text together

Hi

You can use the formula below to concatentate the comments

=CONCATENATE(Sheet2!A1;Sheet3!A1)

BUT if the concatentated text is longer than the merged cells, then it won't
show the rest of the text.

I would rather use a formula like the one below to show all comments,
leaving cells empty if no entry was made. Then you can have a little macro
to hide empty rows in the comment area.

Best regards,
Per
"Dumidu Roshan (Hotmail)" skrev i meddelelsen
...
hi everyone
I have a workbook with 12 sheets in them
it got 11 sheets for 11 employees say Fred Kathy mark so on...
every worksheet has row 30 to 33 to column A to U reserved for employee
comments
A30 to u30 is merged cell so is a31 to u31 and so on.. to type in long
lines of comments
main page adds up all the times they worked
in the main page I want to display comments from all the employee sheets
can you add text or string together like numbers? how do I do this?
thanks
dumi


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
Text string to Numeric string Manikandan[_2_] Excel Discussion (Misc queries) 2 March 12th 09 08:55 AM
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
Sumif text is contained winthin a longer text string in a cell Johnny M[_2_] Excel Worksheet Functions 3 March 21st 07 02:50 PM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM


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