Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Use dynamic column reference without R1C1

Hi:
I'm trying to do the following:

ColA ColB
9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
10 SUMIFS(Data!J:J,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
4 SUMIFS(Data!D:D,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
1 SUMIFS(Data!A:A,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
n SUMIFS(Data!n:n,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)

Notice that the column on the leftmost Data!n:n parameter directly relates
to the number in colunn A. I would like the "n:n" to be dynamic, referencing
the number in A:A to get the proper column. Something like:
Data!column(A1):column(A1).

I don't want to change the sheet over to R1C1 notation if I can avoid it...
Can you help?
Thanks!

Greg
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use dynamic column reference without R1C1

Try this:

Assume your entire range of use on Data is A:J

9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)


=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,"="&ProdYear, Data!G:G,"=" &ProdLine)

Where A1 = 9

Note that the column number is *relative* to the range.

You can probably also get rid of the "="& stuff:

=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,ProdYear,Data !G:G,ProdLine)


--
Biff
Microsoft Excel MVP


"Pontificateur" wrote in message
...
Hi:
I'm trying to do the following:

ColA ColB
9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
10 SUMIFS(Data!J:J,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
4 SUMIFS(Data!D:D,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
1 SUMIFS(Data!A:A,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
n SUMIFS(Data!n:n,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)

Notice that the column on the leftmost Data!n:n parameter directly relates
to the number in colunn A. I would like the "n:n" to be dynamic,
referencing
the number in A:A to get the proper column. Something like:
Data!column(A1):column(A1).

I don't want to change the sheet over to R1C1 notation if I can avoid
it...
Can you help?
Thanks!

Greg



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Use dynamic column reference without R1C1

Brilliant! And I was able to get rid of the "=" as you suggested.

Thanks much!

"T. Valko" wrote:

Try this:

Assume your entire range of use on Data is A:J

9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)


=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,"="&ProdYear, Data!G:G,"=" &ProdLine)

Where A1 = 9

Note that the column number is *relative* to the range.

You can probably also get rid of the "="& stuff:

=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,ProdYear,Data !G:G,ProdLine)


--
Biff
Microsoft Excel MVP


"Pontificateur" wrote in message
...
Hi:
I'm trying to do the following:

ColA ColB
9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
10 SUMIFS(Data!J:J,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
4 SUMIFS(Data!D:D,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
1 SUMIFS(Data!A:A,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
n SUMIFS(Data!n:n,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)

Notice that the column on the leftmost Data!n:n parameter directly relates
to the number in colunn A. I would like the "n:n" to be dynamic,
referencing
the number in A:A to get the proper column. Something like:
Data!column(A1):column(A1).

I don't want to change the sheet over to R1C1 notation if I can avoid
it...
Can you help?
Thanks!

Greg




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Use dynamic column reference without R1C1

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Pontificateur" wrote in message
...
Brilliant! And I was able to get rid of the "=" as you suggested.

Thanks much!

"T. Valko" wrote:

Try this:

Assume your entire range of use on Data is A:J

9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)


=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,"="&ProdYear, Data!G:G,"=" &ProdLine)

Where A1 = 9

Note that the column number is *relative* to the range.

You can probably also get rid of the "="& stuff:

=SUMIFS(INDEX(Data!A:J,,A1),Data!C:C,ProdYear,Data !G:G,ProdLine)


--
Biff
Microsoft Excel MVP


"Pontificateur" wrote in
message
...
Hi:
I'm trying to do the following:

ColA ColB
9 SUMIFS(Data!I:I,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
10 SUMIFS(Data!J:J,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
4 SUMIFS(Data!D:D,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
1 SUMIFS(Data!A:A,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)
n SUMIFS(Data!n:n,Data!C:C,"="&ProdYear,Data!G:G,"=" &ProdLine)

Notice that the column on the leftmost Data!n:n parameter directly
relates
to the number in colunn A. I would like the "n:n" to be dynamic,
referencing
the number in A:A to get the proper column. Something like:
Data!column(A1):column(A1).

I don't want to change the sheet over to R1C1 notation if I can avoid
it...
Can you help?
Thanks!

Greg






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
R1C1 reference style Helpme Please[_2_] Excel Discussion (Misc queries) 5 July 11th 07 11:12 PM
R1C1 Reference Style won't STAY gone? khrystle Excel Discussion (Misc queries) 5 March 1st 06 10:36 PM
I switched on the R1C1 reference style but I can't switch it off a gello Excel Discussion (Misc queries) 1 January 18th 06 03:33 PM
R1C1 reference style Peg P Excel Discussion (Misc queries) 2 November 15th 05 06:48 PM
R1C1 reference Tony S Excel Discussion (Misc queries) 1 May 10th 05 05:58 PM


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