Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm creating a macro to do automatic subtotals, and would like to combine the
word "Total" with the product description in another column. Example: Total - Kraft Mac & Cheese 5 Pack. I'm unsure how to get the contents of the cell to combine with "Total". Any help would be greatly appreciated as always! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi cottager,
I guess what you mean is something like this: Sub test() Range("A2").Select Selection.Formula = "Total - " & Range("A1") End Sub Where cell A1 contains the text 'Kraft Mac & Cheese 5 Pack' cell A2 will now contain 'Total - Kraft Mac & Cheese 5 Pack Obviously you change the cell references to suit. Any problems write right back. Cheers, JF. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the solution to my problem! Much appreciated.
" wrote: Hi cottager, I guess what you mean is something like this: Sub test() Range("A2").Select Selection.Formula = "Total - " & Range("A1") End Sub Where cell A1 contains the text 'Kraft Mac & Cheese 5 Pack' cell A2 will now contain 'Total - Kraft Mac & Cheese 5 Pack Obviously you change the cell references to suit. Any problems write right back. Cheers, JF. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combine text from multiple cells into one cell - =(A1&","&A2","&A3 | Excel Worksheet Functions | |||
Convert cell "contents" into a "comment" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
how to increase size of "name box" and "contents of cell " displa. | New Users to Excel | |||
Linking two "total" pages to create a "Complete Total" page | Excel Worksheet Functions |