#1   Report Post  
Doc
 
Posts: n/a
Default Match and add

Hello
How can I combine a match funtion and sum.
A19=1
A32=2
A45=3...
A318=24
A335=1
A337=2
A339=3...
A381=24
In e335 I would like to match the 1 in a335 to the 1 in A19 and then add
e22,e25,e28,e31
in e337 I would like to match the 2 in a337 to the 2 in A32 and then add
e35,e38,e41,e44

I hope I have not bee too confusing in my explanation.
Thanks

  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Doc

sorry, i'm totally confused ... are you saying, if there is a 1 in A335 and
in A19 then sum E22,E25,E28 & E31
and if there is a 2 in A337 and A32 then add E35, E38, E41 and E44

if so then use the following formula in E335
=IF(AND(A335=1,A19=1),E22+E25+E28+E31,0)
and in E337
=IF(AND(A337=2,A32=2),E35+ E38+E41+E44,0)

Hope this helps
Cheers
JulieD

"Doc" wrote in message
...
Hello
How can I combine a match funtion and sum.
A19=1
A32=2
A45=3...
A318=24
A335=1
A337=2
A339=3...
A381=24
In e335 I would like to match the 1 in a335 to the 1 in A19 and then add
e22,e25,e28,e31
in e337 I would like to match the 2 in a337 to the 2 in A32 and then add
e35,e38,e41,e44

I hope I have not bee too confusing in my explanation.
Thanks



  #3   Report Post  
Doc
 
Posts: n/a
Default

Hi Julie
Sorry for the confusion, but yes that is kind of what I am looking for. The
upper portion of the sheet is an entry area and the lower portion is totals.
So E19-E31 is the entry area for 1 and A19 is always 1 and A 335 is always
1. I was hoping for a formula that would match the A19 and A335 and then sum
the 4 cells refence in the OP. This type of formula would make copying alot
easier.
I hope I havent furhter confused you
Thanks



"JulieD" wrote:

Hi Doc

sorry, i'm totally confused ... are you saying, if there is a 1 in A335 and
in A19 then sum E22,E25,E28 & E31
and if there is a 2 in A337 and A32 then add E35, E38, E41 and E44

if so then use the following formula in E335
=IF(AND(A335=1,A19=1),E22+E25+E28+E31,0)
and in E337
=IF(AND(A337=2,A32=2),E35+ E38+E41+E44,0)

Hope this helps
Cheers
JulieD

"Doc" wrote in message
...
Hello
How can I combine a match funtion and sum.
A19=1
A32=2
A45=3...
A318=24
A335=1
A337=2
A339=3...
A381=24
In e335 I would like to match the 1 in a335 to the 1 in A19 and then add
e22,e25,e28,e31
in e337 I would like to match the 2 in a337 to the 2 in A32 and then add
e35,e38,e41,e44

I hope I have not bee too confusing in my explanation.
Thanks




  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi Doc

sorry i'm still not getting it .. if you'ld like to send me your workbook
(or a copy of just this bit) direct to julied_ng at hcts dot net dot au
i'll have a look at it for you.

Cheers
JulieD

"Doc" wrote in message
...
Hi Julie
Sorry for the confusion, but yes that is kind of what I am looking for.
The
upper portion of the sheet is an entry area and the lower portion is
totals.
So E19-E31 is the entry area for 1 and A19 is always 1 and A 335 is
always
1. I was hoping for a formula that would match the A19 and A335 and then
sum
the 4 cells refence in the OP. This type of formula would make copying
alot
easier.
I hope I havent furhter confused you
Thanks



"JulieD" wrote:

Hi Doc

sorry, i'm totally confused ... are you saying, if there is a 1 in A335
and
in A19 then sum E22,E25,E28 & E31
and if there is a 2 in A337 and A32 then add E35, E38, E41 and E44

if so then use the following formula in E335
=IF(AND(A335=1,A19=1),E22+E25+E28+E31,0)
and in E337
=IF(AND(A337=2,A32=2),E35+ E38+E41+E44,0)

Hope this helps
Cheers
JulieD

"Doc" wrote in message
...
Hello
How can I combine a match funtion and sum.
A19=1
A32=2
A45=3...
A318=24
A335=1
A337=2
A339=3...
A381=24
In e335 I would like to match the 1 in a335 to the 1 in A19 and then
add
e22,e25,e28,e31
in e337 I would like to match the 2 in a337 to the 2 in A32 and then
add
e35,e38,e41,e44

I hope I have not bee too confusing in my explanation.
Thanks






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



All times are GMT +1. The time now is 01:32 AM.

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"