LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default SUMIF w/ changing column refernce ... use an array?

Hello -

I've created a sheet that allows users to see data for a specific
month. They choose the month from a drop-down in cell A3 -- an INDEX
function converts this into a column reference on the Data sheet. The
Data sheet is structured like this:
Col A: Store #
Col B: Account #
Col C: Store & Account (concat'd)
Col D-R: data by month, Total (and a couple of other sums)

Col C contains a unique Store/Acct combination, so I'm able to use
this formula (on the report page) to get the correct figures:
=IF(ISERROR(VLOOKUP(Z$7&$A8,'Store Data_TY'!$A$2:$R$5000,$C$3,FALSE)),
0,VLOOKUP(Z$7&$A8,'Store Data_TY'!$A$2:$R$5000,$C$3,FALSE))
whe
Z7: store #
A8: acct #
C3: column reference

This all works fine -- my issue is that there is one scenario where I
need to SUM the values for 2 stores! I need to be able to see them
separately, but most of the time they should be added. If not for the
changing column reference, I could use SUMIF ... but how would I build
it to incorporate the changing column reference?

I think my answer lies with an ARRAY formula, but these things always
confuse me ....

Any ideas?

TIA,
ray

 
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
Sumif/lookup ? Array svemor Excel Discussion (Misc queries) 1 March 8th 07 07:55 PM
and < for Array Sumif ({}) Kiwi Matt Excel Worksheet Functions 6 October 23rd 06 06:32 PM
Sumif and changing array csimont Excel Discussion (Misc queries) 3 February 2nd 06 11:20 PM
use sumif with array pdberger Excel Worksheet Functions 3 June 22nd 05 09:12 PM
sumif and array formulas Simon Murphy Excel Worksheet Functions 4 January 25th 05 05:22 PM


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