Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mr unreliable
 
Posts: n/a
Default How to set up reference to allow dragging

hi Group,

I have a formula that looks something like this:

= CalcDiscount(ItemsSold FY2002)

(where "CalcDiscount" is a macro function)

I would like to be able to drag that formula across the row
to fill in the remaining cells (for 2004, 2005, etc)

But when I drag it, I get the SAME formula.

Is there any way to set up the formula so that when one
drags it, one would get:

CalcDiscount(ItemsSold FY2003),
CalcDiscount(ItemsSold FY2004), etc.

Note that when the formula is just "= ItemsSold", and you
drag that, you do get the ItemsSold in the column just
above, in other words, the column reference changes
(implicitly) to reflect the column where the formula is.

In the situation above, I had initially tried this:

= CalcDiscount(ItemsSold)

hoping that the column reference would be implicit.
However, the function rejected that parameter, because
"ItemsSold" was defined as a (row) array, and the parameter
expected was a cell.value reference. So, I had to add the
column name.

tiafah, jw


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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Automatically change tab reference TWC Excel Discussion (Misc queries) 2 February 2nd 05 10:17 PM
Cell Reference Math Ralph Howarth Excel Worksheet Functions 0 January 26th 05 06:27 PM
Incrementing rows (or columns) to a reference in another worksheet Ignobilitor Excel Worksheet Functions 2 January 20th 05 03:45 PM
How do I reference multiple rows Awetronics Excel Worksheet Functions 1 November 4th 04 12:37 AM


All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"