Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default A rather Taxing question

I need to cater for 3 different levels of Value Added Tax (VAT).
I'm wondering whether cycling through each sheet, calculating as
I go, or whether building 3 arrays and then calculating, would
prove more efficient?

The user would first 'tag' each applicable item with the value A,
B or C, in the same row, but in column Z. The user would only do
this once for each workbook.

The code would then sample down column S along the lines of:

For Each c In UsedRange.Columns(19) ....S
If Not IsEmpty(c) Then
If IsNumeric(c.Value) Then
If c.Value "0" Or c.Value "0.00" Then
'multiply c by either A B or C found in col Z, same row, and put the
'value in col T, same row.

I want the routine to be flexible so I won't hardcode the values
for A, B or C. Rather I'm thinking to start the routine by building
a Collection of the values in col Z, and then presenting a form
for the user to enter their values.

Whilst I think this is perfectly achievable, I've no knowledge as to
the likely performance. Would arrays be achievable and more
efficient?

Along the way I've also to sum 'pages' in col T, transfer summed
values to other sheets, do further summing and then transfer to a
final Summary sheet.

Unsure how to proceed, so any help/suggestions much
appreciated.

Regards.






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.571 / Virus Database: 361 - Release Date: 26/01/2004


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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
formula for taxing jesseok Excel Discussion (Misc queries) 4 October 20th 08 11:47 PM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


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