Append "/1000" to formula in cell range

bound4h

New Member
Joined
Feb 22, 2011
Messages
10
I am trying to code a macro that will, in essence, divide all values in a non-contiguous range by 1000. BUT, the key is not to overwrite the formula.

Example: I have two ranges A1:C2 and T2:U:9 and all of the cells have a SUMIF() formula in them. Well, using a Combo Box with two choices (one for "in 000's" and one for "Original") I would like the user to be able to select "in 000's" and the macro APPEND "/1000" to the end of all of the formulas in the range. So that when the user then selects "Original" from the combo box it will take OFF the /1000 and the formula will stay in tact.

Is this possible? <!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Rather than modifying the formula, would you not be better off adding a format to display the numbers as required?
 
Upvote 0
If you had a checkbox control linked to a cell, say A2, then you could change the formulas to be

=sumif(whatever) / if(A2, 1000, 1)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top