Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DSD DSD is offline
external usenet poster
 
Posts: 1
Default Include varying cell references in formulas based on changing crit

Here is what I have: =60*J29 then =60*K29, etc across numerous columns.
There are three variations to the row 29 data that I would like to use. In
other words =60*J29 then =60*K29, etc. to see what I get and then try =60*J30
then =60*K30 to see what I get. To do this scenario work, it would be ideal
if I could simple include a reference to another cell, where I could specify
criteria which would then cause the formula to reference row 29 or row 30
depending on the criteria I enter. In other words if cell B3 =1, calculate
formulas based on row 29. If cell B3 =2, use row 30, etc. Thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Include varying cell references in formulas based on changingcrit

You can use INDIRECT in a case like this, where a cell address is
built up as a string. With 1, 2, 3 etc in B3, then your formula can
be:

=60*INDIRECT("J"&28+$B$3)

The adjacent cell would contain:

=60*INDIRECT("K"&28+$B$3)

and so on.

Hope this helps.

Pete

On Jun 6, 5:36*pm, DSD wrote:
Here is what I have: *=60*J29 then =60*K29, etc across numerous columns. *
There are three variations to the row 29 data that I would like to use. *In
other words =60*J29 then =60*K29, etc. to see what I get and then try =60*J30
then =60*K30 to see what I get. *To do this scenario work, it would be ideal
if I could simple include a reference to another cell, where I could specify
criteria which would then cause the formula to reference row 29 or row 30
depending on the criteria I enter. *In other words if cell B3 =1, calculate
formulas based on row 29. *If cell B3 =2, use row 30, etc. *Thoughts?


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 keeps changing my formulas to include nearby cells. emeraldc Charts and Charting in Excel 1 May 25th 08 06:49 AM
Excel keeps auto-changing my formulas to include other cells. emeraldc Excel Worksheet Functions 2 May 22nd 08 04:12 PM
is there a formula to add numbers in a range based on several crit BROCK8292 Excel Discussion (Misc queries) 2 March 25th 08 01:00 AM
Changing cell references in formulas to names and back again. Aaron Excel Discussion (Misc queries) 4 April 25th 06 11:12 PM
Changing Cell References in Formulas Pat Excel Worksheet Functions 2 December 15th 04 05:29 PM


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