Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Add from multiple criteria in a range

I have been struggling with this one, and believe that there must be a way of
doing this without adding 52 different formulas.

I have row A with 1 criteria, row B with the second. Columns C,D & E can
contain the criteria I am looking for in row A. Then Columns F onwards
contain quantity in the first column then Criteria B in the second column,
and so on.
I need to find the total of all matches of Criteria A in either C,D or E,
then Criteria B in column G onwards. Returning the value of the previous
colums , then added together.

A B C D E F G H I
J K L M N

FB ORML (FORMULA) FB 0 0 5 VGML 0 0 0 0
FB VGML FM FB 0 2 FPML 1 VGML 0
0
FB FPML LM 0 0 1 VGML 1 ORML 3
VLML
FB VLML CB FM FB 3 ORML 2 FPML 0
0
FB MOML FM 0 0 0 O 0 0
0 0

So I need the formula to find all matches of A in D,E & F, then find matches
of column b in the corresponding rows, when matches found add up the numbers
in the previous cell to the match.

I tried sumproduct, but was limited to single columns, thus would have to do
over 52 formulas for each line. I know there must be an easier way, but
cannot find it. Any help would save me pulling my hair out.

Hope this makes sense.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Add from multiple criteria in a range

It makes a little sense....

Try this for the part about matching B:

=SUMIF(F2:BB2,B2,E2:BA2)

I'm not sure what you want to do about A, perhaps something like this?

=IF(NOT(ISERROR(MATCH(A2,C2:E2,FALSE))),SUMIF(F2:B B2,B2,E2:BA2),"")

HTH,
Bernie
MS Excel MVP


"thomsonpa" wrote in message
...
I have been struggling with this one, and believe that there must be a way of
doing this without adding 52 different formulas.

I have row A with 1 criteria, row B with the second. Columns C,D & E can
contain the criteria I am looking for in row A. Then Columns F onwards
contain quantity in the first column then Criteria B in the second column,
and so on.
I need to find the total of all matches of Criteria A in either C,D or E,
then Criteria B in column G onwards. Returning the value of the previous
colums , then added together.

A B C D E F G H I
J K L M N

FB ORML (FORMULA) FB 0 0 5 VGML 0 0 0 0
FB VGML FM FB 0 2 FPML 1 VGML 0
0
FB FPML LM 0 0 1 VGML 1 ORML 3
VLML
FB VLML CB FM FB 3 ORML 2 FPML 0
0
FB MOML FM 0 0 0 O 0 0
0 0

So I need the formula to find all matches of A in D,E & F, then find matches
of column b in the corresponding rows, when matches found add up the numbers
in the previous cell to the match.

I tried sumproduct, but was limited to single columns, thus would have to do
over 52 formulas for each line. I know there must be an easier way, but
cannot find it. Any help would save me pulling my hair out.

Hope this makes sense.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Add from multiple criteria in a range

Sorry I could not get your formulas to work. Maybe I didn't explain it too
well. (Plus I made an error in my column names!).
I need to find a match for ROW A in columns D, E or F. if matches are found
(there will be more than one) look for a match for column B in that row, for
all matches return the value of the previous cell into column C. There will
be more than one to add up.
So:

A B C D E F G H I

FB VLML (ANSWER) FM FB 0 12 VLML 1







"Bernie Deitrick" wrote:

It makes a little sense....

Try this for the part about matching B:

=SUMIF(F2:BB2,B2,E2:BA2)

I'm not sure what you want to do about A, perhaps something like this?

=IF(NOT(ISERROR(MATCH(A2,C2:E2,FALSE))),SUMIF(F2:B B2,B2,E2:BA2),"")

HTH,
Bernie
MS Excel MVP


"thomsonpa" wrote in message
...
I have been struggling with this one, and believe that there must be a way of
doing this without adding 52 different formulas.

I have row A with 1 criteria, row B with the second. Columns C,D & E can
contain the criteria I am looking for in row A. Then Columns F onwards
contain quantity in the first column then Criteria B in the second column,
and so on.
I need to find the total of all matches of Criteria A in either C,D or E,
then Criteria B in column G onwards. Returning the value of the previous
colums , then added together.

A B C D E F G H I
J K L M N

FB ORML (FORMULA) FB 0 0 5 VGML 0 0 0 0
FB VGML FM FB 0 2 FPML 1 VGML 0
0
FB FPML LM 0 0 1 VGML 1 ORML 3
VLML
FB VLML CB FM FB 3 ORML 2 FPML 0
0
FB MOML FM 0 0 0 O 0 0
0 0

So I need the formula to find all matches of A in D,E & F, then find matches
of column b in the corresponding rows, when matches found add up the numbers
in the previous cell to the match.

I tried sumproduct, but was limited to single columns, thus would have to do
over 52 formulas for each line. I know there must be an easier way, but
cannot find it. Any help would save me pulling my hair out.

Hope this makes sense.





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Add from multiple criteria in a range

There is no ROW A - there is a column A...

Anyway, try this for values in Row 2

=IF(NOT(ISERROR(MATCH(A2,D2:F2,FALSE))),SUMIF(H2:B B2,B2,G2:BA2),"")

Note that in the SUMIF, the ranges are offset by one column - so if you change H2:BB2 to H2:CB2, you
need to change G2:BA2 to G2:CA2... The same number of columns in each range.

HTH,
Bernie
MS Excel MVP


"thomsonpa" wrote in message
...
Sorry I could not get your formulas to work. Maybe I didn't explain it too
well. (Plus I made an error in my column names!).
I need to find a match for ROW A in columns D, E or F. if matches are found
(there will be more than one) look for a match for column B in that row, for
all matches return the value of the previous cell into column C. There will
be more than one to add up.
So:

A B C D E F G H I

FB VLML (ANSWER) FM FB 0 12 VLML 1







"Bernie Deitrick" wrote:

It makes a little sense....

Try this for the part about matching B:

=SUMIF(F2:BB2,B2,E2:BA2)

I'm not sure what you want to do about A, perhaps something like this?

=IF(NOT(ISERROR(MATCH(A2,C2:E2,FALSE))),SUMIF(F2:B B2,B2,E2:BA2),"")

HTH,
Bernie
MS Excel MVP


"thomsonpa" wrote in message
...
I have been struggling with this one, and believe that there must be a way of
doing this without adding 52 different formulas.

I have row A with 1 criteria, row B with the second. Columns C,D & E can
contain the criteria I am looking for in row A. Then Columns F onwards
contain quantity in the first column then Criteria B in the second column,
and so on.
I need to find the total of all matches of Criteria A in either C,D or E,
then Criteria B in column G onwards. Returning the value of the previous
colums , then added together.

A B C D E F G H I
J K L M N

FB ORML (FORMULA) FB 0 0 5 VGML 0 0 0 0
FB VGML FM FB 0 2 FPML 1 VGML 0
0
FB FPML LM 0 0 1 VGML 1 ORML 3
VLML
FB VLML CB FM FB 3 ORML 2 FPML 0
0
FB MOML FM 0 0 0 O 0 0
0 0

So I need the formula to find all matches of A in D,E & F, then find matches
of column b in the corresponding rows, when matches found add up the numbers
in the previous cell to the match.

I tried sumproduct, but was limited to single columns, thus would have to do
over 52 formulas for each line. I know there must be an easier way, but
cannot find it. Any help would save me pulling my hair out.

Hope this makes sense.







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Add from multiple criteria in a range

Excel 2007
Yet another stab into the dark:
http://www.mediafire.com/file/kkynomzntdm/02_04_09.xlsx


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Add from multiple criteria in a range

Sorry, I cannot use Office 2007 version at work.


"Herbert Seidenberg" wrote:

Excel 2007
Yet another stab into the dark:
http://www.mediafire.com/file/kkynomzntdm/02_04_09.xlsx

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
sum a range with multiple criteria Dianne Excel Discussion (Misc queries) 5 September 7th 08 04:09 PM
match multiple criteria ina range from multiple criteria multiplet RG Excel Worksheet Functions 8 September 28th 07 04:21 AM
sum a range after multiple criteria George P Excel Discussion (Misc queries) 6 August 5th 07 03:33 PM
look up with multiple criteria and within a range kjguillermo Excel Worksheet Functions 3 September 26th 06 12:23 AM
Counting from one range to another range, multiple criteria macamarr Excel Discussion (Misc queries) 3 June 10th 06 11:02 AM


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