Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Want to explain this some more??
Are you saying ,if cell B1 is negative the A1 is negative? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
that's pretty cool,
is there a way to do that so you can still keep the formulas in the cells? Dave |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
joining worksheets | Excel Worksheet Functions | |||
Cell joining problem | Excel Discussion (Misc queries) | |||
Joining text in one cell | Excel Worksheet Functions | |||
Joining cells together | Excel Programming | |||
Joining 2 SUMIF's ??? | Excel Discussion (Misc queries) |