Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default Need Help with what i thought was a SIMPLE Macro

I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the same
value of 1593 for each cell i try it on. It just inserts the formula =177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Need Help with what i thought was a SIMPLE Macro

Try this.

First make a backup of your data, then put 9 in an empty cell, make sure the
cell is formatted the same way as the cells you want to change, then copy
the cell with 9, select all data you want to multiply and do editpaste
special and select multiply


--

Regards,

Peo Sjoblom




"sharon" wrote in message
...
I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value
of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would
save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the
same
value of 1593 for each cell i try it on. It just inserts the formula
=177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Need Help with what i thought was a SIMPLE Macro

Post a copy of your macro, then we can advise on how to amend it.

Pete

On Sep 30, 8:17 pm, sharon wrote:
I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the same
value of 1593 for each cell i try it on. It just inserts the formula =177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default Need Help with what i thought was a SIMPLE Macro

You could put the following code in a module and assign it a shortcut key
such as Ctrl+m then select a cell and press Ctrl+m. If the cell is numeric,
the code multiplies the cell by 9.

Sub Multiply_by_9()
If IsNumeric(ActiveCell) Then
ActiveCell = ActiveCell * 9
End If
End Sub

"sharon" wrote in message
...
I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value
of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would
save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the
same
value of 1593 for each cell i try it on. It just inserts the formula
=177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default Need Help with what i thought was a SIMPLE Macro

Sub times9()
'
' times9 Macro
' multiply cell contents by 9
'
' Keyboard Shortcut: Ctrl+r
'
ActiveCell.FormulaR1C1 = "=5*9"
Range("C5").Select
End Sub



"Pete_UK" wrote:

Post a copy of your macro, then we can advise on how to amend it.

Pete

On Sep 30, 8:17 pm, sharon wrote:
I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the same
value of 1593 for each cell i try it on. It just inserts the formula =177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default Need Help with what i thought was a SIMPLE Macro

Thanks, I'll try this, too as soon as i figure out what a module is and where
they live (not being sarcastic, just don't know). Peo's solution worked as
well, but obliterated the original number (i.e. no formula to see what i did)
Thanks Peo that made short work of many many manual edifications.


"Wondering" wrote:

You could put the following code in a module and assign it a shortcut key
such as Ctrl+m then select a cell and press Ctrl+m. If the cell is numeric,
the code multiplies the cell by 9.

Sub Multiply_by_9()
If IsNumeric(ActiveCell) Then
ActiveCell = ActiveCell * 9
End If
End Sub

"sharon" wrote in message
...
I have a cell i want to multiply by 9. I have a lot of them. So I'd like a
macro with a shortcut to do it for me. For Example: cell c62 has a value
of
177. I want it to have a value of 1593. Instead of manually editing each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would
save
lots of time. Unfortunately when I write the macro, it works on the first
cell I wrote it on, but when I execute it on other cells it gives me the
same
value of 1593 for each cell i try it on. It just inserts the formula
=177*9
and the value 1593. Can anyone please help?? I'm stuck and it would sure
help. Thanks.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Need Help with what i thought was a SIMPLE Macro

The macros suggested will also obliterate the original number.

As far as "made short work" just open the backup copy you made before you tried
Peo's suggestion.


Gord Dibben MS Excel MVP

On Sun, 30 Sep 2007 13:36:01 -0700, sharon
wrote:

Peo's solution worked as
well, but obliterated the original number (i.e. no formula to see what i did)
Thanks Peo that made short work of many many manual edifications.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default Need Help with what i thought was a SIMPLE Macro

Are you multiplying a bunch of numbers one after another down a column or
just here and there in the spreadsheet?

"sharon" wrote in message
...
Thanks, I'll try this, too as soon as i figure out what a module is and
where
they live (not being sarcastic, just don't know). Peo's solution worked
as
well, but obliterated the original number (i.e. no formula to see what i
did)
Thanks Peo that made short work of many many manual edifications.


"Wondering" wrote:

You could put the following code in a module and assign it a shortcut key
such as Ctrl+m then select a cell and press Ctrl+m. If the cell is
numeric,
the code multiplies the cell by 9.

Sub Multiply_by_9()
If IsNumeric(ActiveCell) Then
ActiveCell = ActiveCell * 9
End If
End Sub

"sharon" wrote in message
...
I have a cell i want to multiply by 9. I have a lot of them. So I'd like
a
macro with a shortcut to do it for me. For Example: cell c62 has a
value
of
177. I want it to have a value of 1593. Instead of manually editing
each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would
save
lots of time. Unfortunately when I write the macro, it works on the
first
cell I wrote it on, but when I execute it on other cells it gives me
the
same
value of 1593 for each cell i try it on. It just inserts the formula
=177*9
and the value 1593. Can anyone please help?? I'm stuck and it would
sure
help. Thanks.






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default Need Help with what i thought was a SIMPLE Macro

a few are contigous but others are here and there.

"Wondering" wrote:

Are you multiplying a bunch of numbers one after another down a column or
just here and there in the spreadsheet?

"sharon" wrote in message
...
Thanks, I'll try this, too as soon as i figure out what a module is and
where
they live (not being sarcastic, just don't know). Peo's solution worked
as
well, but obliterated the original number (i.e. no formula to see what i
did)
Thanks Peo that made short work of many many manual edifications.


"Wondering" wrote:

You could put the following code in a module and assign it a shortcut key
such as Ctrl+m then select a cell and press Ctrl+m. If the cell is
numeric,
the code multiplies the cell by 9.

Sub Multiply_by_9()
If IsNumeric(ActiveCell) Then
ActiveCell = ActiveCell * 9
End If
End Sub

"sharon" wrote in message
...
I have a cell i want to multiply by 9. I have a lot of them. So I'd like
a
macro with a shortcut to do it for me. For Example: cell c62 has a
value
of
177. I want it to have a value of 1593. Instead of manually editing
each
cell (F2, home,=,end,*,9,enter) each and every time, a macro here would
save
lots of time. Unfortunately when I write the macro, it works on the
first
cell I wrote it on, but when I execute it on other cells it gives me
the
same
value of 1593 for each cell i try it on. It just inserts the formula
=177*9
and the value 1593. Can anyone please help?? I'm stuck and it would
sure
help. Thanks.






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default Need Help with what i thought was a SIMPLE Macro

it was ok that peo's suggestion wiped out the original number. though i would
have preferred the formula to the final value, but i just footnoted the
multiplier so it worked out fine. thank you.

"Gord Dibben" wrote:

The macros suggested will also obliterate the original number.

As far as "made short work" just open the backup copy you made before you tried
Peo's suggestion.


Gord Dibben MS Excel MVP

On Sun, 30 Sep 2007 13:36:01 -0700, sharon
wrote:

Peo's solution worked as
well, but obliterated the original number (i.e. no formula to see what i did)
Thanks Peo that made short work of many many manual edifications.



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
Don't think it's possible, but I thought I would ask. smaumau Excel Worksheet Functions 1 April 3rd 06 11:20 PM
Simple Formula (I thought) csandi Excel Worksheet Functions 3 November 14th 05 08:47 PM
I THOUGHT I knew what I was doing RJB Charts and Charting in Excel 7 September 12th 05 08:37 PM
This is A LOT harder than I thought it would be Robert Excel Discussion (Misc queries) 13 August 24th 05 12:20 AM
On second thought ... Jerry Kinder New Users to Excel 0 November 26th 04 02:38 AM


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