Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Can I apply a discount across a complete workbook?

I have a price list created in Excel and I need to apply a 30% discount
across the entire range. As a lot of the prices are composed of other figures
within the workbook most cells contain macros, so I can't just cut and paste
as the macros corrupt. I have in excess of 400 prices to update so one cell
at a time is going to take forever!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Can I apply a discount across a complete workbook?

Select the cells that you want to discount and run this macro:

Sub discount()
' gsnuxx
s1 = "=("
s2 = ")*.7"
For Each r In Selection
If IsEmpty(r) Then
Else
v = r.Formula
If Left(v, 1) = "=" Then
v = Right(v, Len(v) - 1)
End If
r.Formula = s1 & v & s2
End If
Next
End Sub

Then continue with the next worksheet in the workbook.
--
Gary''s Student - gsnu200829


"Pauliexjr" wrote:

I have a price list created in Excel and I need to apply a 30% discount
across the entire range. As a lot of the prices are composed of other figures
within the workbook most cells contain macros, so I can't just cut and paste
as the macros corrupt. I have in excess of 400 prices to update so one cell
at a time is going to take forever!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Can I apply a discount across a complete workbook?


Pauliexjr;200046 Wrote:
I have a price list created in Excel and I need to apply a 30% discount
across the entire range. As a lot of the prices are composed of other
figures
within the workbook most cells contain macros, so I can't just cut and
paste
as the macros corrupt. I have in excess of 400 prices to update so one
cell
at a time is going to take forever!


Enter 0.7 in an empty cell - Copy - Select the range to discount -
Right Click - Paste special - Check "Multiply" - OK


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=55051

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
Reference Cells from other Workbook to complete Formula Dvinechild Excel Discussion (Misc queries) 6 May 4th 07 04:22 PM
number pages for complete workbook willeyc Excel Discussion (Misc queries) 1 October 18th 06 01:01 AM
same date and set up on complete workbook ED New Users to Excel 3 April 17th 06 04:22 PM
Print setup of a complete workbook I Rygert Excel Discussion (Misc queries) 1 March 22nd 06 08:44 AM
Unable to print a complete workbook Bradley Excel Discussion (Misc queries) 3 September 30th 05 02:57 PM


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