Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Column D has numbers in random cells. Is there a code that will look through
the cells in Column D for numbers and when it finds them multiply them by 2? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub multiplyby()
x = InputBox("multiple value ie: 2") On Error Resume Next For Each c In Columns("D").SpecialCells(xlCellTypeConstants, 23) 'If IsNumeric(c) Then c.Value = c * x c.Value = c * x Next c End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "TGalin" wrote in message ... Column D has numbers in random cells. Is there a code that will look through the cells in Column D for numbers and when it finds them multiply them by 2? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you for your help. I'm not sure how to use this.
"Don Guillett" wrote: Sub multiplyby() x = InputBox("multiple value ie: 2") On Error Resume Next For Each c In Columns("D").SpecialCells(xlCellTypeConstants, 23) 'If IsNumeric(c) Then c.Value = c * x c.Value = c * x Next c End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "TGalin" wrote in message ... Column D has numbers in random cells. Is there a code that will look through the cells in Column D for numbers and when it finds them multiply them by 2? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Search for a column based on the column header and then past data from it to another column in another workbook | Excel Programming | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Programming | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
How can i have all alike product codes in column A be matched with like cities in column B and then add the totals that are in column C | Excel Programming |