Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Multiple Criteria, Multiple Column

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Multiple Criteria, Multiple Column

Hi

If you use a cell to hold the column letter you wish to take the values
from, I used P1, then

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*
INDIRECT('Budget Data'!$P$1&"4:"&'Budget Data'!$P$1&"801"))}


--
Regards

Roger Govier


"MB" wrote in message
...
I have used the following formula successfuly to solve a multiple
criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At
the end
of the above where it says $D$4:$D$801.....I need it to look for the
correct
column rather than just look at "D" as depending on the month, the
result
should be coming from any of columns 1 to 12. This is obviously
difficult
with a multiple criteria array formula!

HELP!!!!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Multiple Criteria, Multiple Column

Try:

=SUMPRODUCT(('Budget Data'!$A$4:$A$801='Budget Data'!$B$3)*('Budget
Data'!$B$4:$B$801=VALUE('Budget Data'!$A26))*(OFFSET('Budget
Data'!$Y$4,0,MONTH(X1)-1,798,1)))

X1 contains date for required month

Change $Y$4 to range for January data

"MB" wrote:

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Multiple Criteria, Multiple Column

One way to achieve it via OFFSET/MATCH ..

In sheet: Budget Data,

Assume D3:O3 contains the "month" numbers: 1,2,3 ... 12

Then you could try something like this, array-entered**:
=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*OFFSET('Budget
Data'!$C$4:$C$801,,MATCH(A5,'Budget Data'!$D$3:$O$3,0)))

where A5 would house the desired "month" number col to be summed,
ie: 1,2,.. 12

**Press CTRL+SHIFT+ENTER to confirm the formula
(instead of just pressing ENTER)

If A5 = 1, you'd get the conditional sum for col D in Budget Data.
If A5 = 3, it returns the conditional sum for col F, and so on ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MB" wrote:
I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Multiple Criteria, Multiple Column

=SUM(('Budget Data'!$A$4:$A$80=$B$5)*('Budget
Data'!$B$4:$B$80=VALUE($A28))*INDEX('Budget
Data'!$D$4:$O$80,0,MONTH(TODAY())))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"MB" wrote in message
...
I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the
end
of the above where it says $D$4:$D$801.....I need it to look for the
correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!





  #6   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Multiple Criteria, Multiple Column

Thanks Roger,

Ive tried this but its coming out with the "Value" error.

I tried looking at the formula for indirect on its own in a separate cell.
This gave the result "0", whereas I think it should be giving the result of
the cell ref range.

Any ideas?!


"Roger Govier" wrote:

Hi

If you use a cell to hold the column letter you wish to take the values
from, I used P1, then

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*
INDIRECT('Budget Data'!$P$1&"4:"&'Budget Data'!$P$1&"801"))}


--
Regards

Roger Govier


"MB" wrote in message
...
I have used the following formula successfuly to solve a multiple
criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At
the end
of the above where it says $D$4:$D$801.....I need it to look for the
correct
column rather than just look at "D" as depending on the month, the
result
should be coming from any of columns 1 to 12. This is obviously
difficult
with a multiple criteria array formula!

HELP!!!!!




  #7   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Multiple Criteria, Multiple Column

Still no luck with this one chaps! They all look promising, any more ideas?


"MB" wrote:

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Multiple Criteria, Multiple Column

Can you send sample w/book?

toppers at NOSPAMjohntopley.fsnet.co.uk

Remove NOSPAM

"MB" wrote:

Still no luck with this one chaps! They all look promising, any more ideas?


"MB" wrote:

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Multiple Criteria, Multiple Column

If I understand correctly, this worked OK for me:

G1= date (for month) e.g 01/02/07 for February (UK date)

Monthly data starts in Column D i.e January,E=February etc

=SUMPRODUCT(--('Budget Data'!$A$4:$A$801=$B$3),--('Budget
Data'!$B$4:$B$801=VALUE($A28)),(OFFSET('Budget
Data'!$D$4,0,MONTH(G1)-1,798,1)))



"MB" wrote:

Still no luck with this one chaps! They all look promising, any more ideas?


"MB" wrote:

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!

  #10   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Multiple Criteria, Multiple Column

Thanks..

I managed to get it to work with :-

{=SUM(('Budget Data'!$A$3:$A$806=$B$5)*('Budget
Data'!$B$3:$B$806=VALUE($A28))*OFFSET('Budget Data'!$D$3:$D$806,0,'Criteria
Sheet'!$E$7-1))}

"Toppers" wrote:

If I understand correctly, this worked OK for me:

G1= date (for month) e.g 01/02/07 for February (UK date)

Monthly data starts in Column D i.e January,E=February etc

=SUMPRODUCT(--('Budget Data'!$A$4:$A$801=$B$3),--('Budget
Data'!$B$4:$B$801=VALUE($A28)),(OFFSET('Budget
Data'!$D$4,0,MONTH(G1)-1,798,1)))



"MB" wrote:

Still no luck with this one chaps! They all look promising, any more ideas?


"MB" wrote:

I have used the following formula successfuly to solve a multiple criteria
problem.

{=SUM(('Budget Data'!$A$4:$A$801=$B$5)*('Budget
Data'!$B$4:$B$801=VALUE($A28))*'Budget Data'!$D$4:$D$801)}

However I need to bring in some sort of INDEX/MATCHING solution. At the end
of the above where it says $D$4:$D$801.....I need it to look for the correct
column rather than just look at "D" as depending on the month, the result
should be coming from any of columns 1 to 12. This is obviously difficult
with a multiple criteria array formula!

HELP!!!!!

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
Using Countif with multiple criteria in the same column. Harley Excel Discussion (Misc queries) 5 May 5th 23 07:44 PM
FILTERATION ON MULTIPLE CRITERIA OF A COLUMN FARAZ QURESHI Excel Discussion (Misc queries) 2 May 31st 07 12:46 PM
Multiple Criteria in same Column Charlene Excel Worksheet Functions 9 February 19th 07 06:04 PM
Sumproduct - multiple criteria in Column A briank Excel Worksheet Functions 2 January 6th 05 06:44 PM
multiple criteria in one column Barb Excel Worksheet Functions 1 December 3rd 04 07:49 PM


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