Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rocket0612
 
Posts: n/a
Default selecting a worksheet


I have 4 worksheets named calculation, 2004, 2005 & 2006.

On the calculation sheet I have a user that enters these details in
these cells:

Range A2 = commencement year
Range B2 = amount on records

The commencement year enters determines if sheet 2004, 2005 or 2006
should be used to look up cell A1 for the correct rate to use.

I want Range C2 to do this calculation:

('amount on records' X 'rate for the commencement year')/1000

so for example, if the commencement year was 2006 the formula would
be;

(B2*'2006 Rates'!A1)/1000

my problem is, I dont know how to factor in the comencement year as it
varies depending on what year is input. any help would be
appreciated.

thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=517705

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default selecting a worksheet

=(B2*INDIRECT("'"&A2&" Rates'!A1"))/1000


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"rocket0612" wrote
in message ...

I have 4 worksheets named calculation, 2004, 2005 & 2006.

On the calculation sheet I have a user that enters these details in
these cells:

Range A2 = commencement year
Range B2 = amount on records

The commencement year enters determines if sheet 2004, 2005 or 2006
should be used to look up cell A1 for the correct rate to use.

I want Range C2 to do this calculation:

('amount on records' X 'rate for the commencement year')/1000

so for example, if the commencement year was 2006 the formula would
be;

(B2*'2006 Rates'!A1)/1000

my problem is, I dont know how to factor in the comencement year as it
varies depending on what year is input. any help would be
appreciated.

thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile:

http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=517705



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rocket0612
 
Posts: n/a
Default selecting a worksheet


thanks bob, the formula works and returns the value, however, I am
getting a type mismatch error, why is this?

thanks


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=517705

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
Needed: worksheet export help mainemike Excel Discussion (Misc queries) 1 February 24th 06 02:59 AM
Populating worksheet via a drop down list ! kuansheng Excel Worksheet Functions 4 February 14th 06 05:48 AM
Selecting Worksheet by it's value originally given [email protected] Excel Worksheet Functions 2 October 28th 05 07:48 PM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


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