Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Joining cell values together

Hi,


I have cell A1 = 10 and B1 = -

This must change A1 to -10

I have no other option, I cannot use any other cells for joining,

Any others Ideas?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200601/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Joining cell values together

Want to explain this some more??
Are you saying ,if cell B1 is negative the A1 is negative?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Joining cell values together

Try this small macro:


Sub Macro1()
Cells(1, 1) = Cells(1, 2) & Cells(1, 1)
End Sub

--
Gary's Student


"Danny Boy via OfficeKB.com" wrote:

Hi,


I have cell A1 = 10 and B1 = -

This must change A1 to -10

I have no other option, I cannot use any other cells for joining,

Any others Ideas?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200601/1

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Joining cell values together

that's pretty cool,
is there a way to do that so you can still keep the formulas in the
cells?
Dave

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Joining cell values together

Hi Dave:

This will work, but only if A1 contains a fomula (starts with =):

Sub Macro2()
Dim s As String
s = Cells(1, 1).Formula
s = "=" & Cells(1, 2) & "(" & Right(s, Len(s) - 1) & ")"
Cells(1, 1).Formula = s
End Sub

--
Gary''s Student


"damorrison" wrote:

that's pretty cool,
is there a way to do that so you can still keep the formulas in the
cells?
Dave




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Joining cell values together

Hi Guys

Thanks for your responses

I wish I would have waited for your replies. I did it the way I didn't want
to by going round the bush abit.

I put =A2&B2 into the appriopite cells then copied and pasted the results as
values into column C then went back and deleted the columns A and B, its
works this way and its fast zzzziiiiiiiiiiiiiiipppppppppppp

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200601/1
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
joining worksheets Jessica Excel Worksheet Functions 4 February 19th 09 02:53 PM
Cell joining problem Niniel Excel Discussion (Misc queries) 15 July 27th 07 09:16 PM
Joining text in one cell ca.ankitgarg Excel Worksheet Functions 5 January 25th 07 04:52 AM
Joining cells together Danny Boy via OfficeKB.com Excel Programming 4 January 29th 06 03:26 PM
Joining 2 SUMIF's ??? AC-H Excel Discussion (Misc queries) 5 December 3rd 05 05:50 PM


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