A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Index & Match



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 09:44 PM
Greg Malenky
external usenet poster
 
Posts: n/a
Default Index & Match

excel 2000

I am having trouble finding the proper function to arrive
at the following answer for this table:

employee store
john store1
dave store1
tom store1

bill store2
john store2
ken store2

dave & tom are at store1 all the time
bill & ken are at store2 all the time
john works both stores during the week

On my report, I want to show all the stores listed for
each employee

stores
employee column 1 | column 2
bill store2 |
ken store2 |
john store1 | store2
dave store1 |
tom store1 |

johns information has to appear in the same row. I've
totalled all his sales infomation together.

i've tried several functions, but can't get the right
combination.

do i use index & match, countif, choose?

any help???

thank you
greg
  #2  
Old September 16th, 2003, 05:12 AM
acw
external usenet poster
 
Posts: n/a
Default Index & Match

Greg

Data is in the range A1:B8 as described. The output is in
2 columns.

In cell C2 enter the formula
=COUNTIF($A$2:A2,A2)
and copy down.

In cell D1 enter the heading Employee and in the range D2 -
D6 enter the employee names.

In Cell E2 enter the formula
=INDEX($B$1:$B$8,SUMPRODUCT(($A$2:$A$8=D2)*($C$2:$ C$8=1)
*ROW($A$2:$A$8)))
and copy down to E6.

In Cell F2 enter the formula
=IF(SUMPRODUCT(($A$2:$A$8=D2)*($C$2:$C$8=2)*ROW($A $2:$A$8))
0,INDEX($B$1:$B$8,SUMPRODUCT(($A$2:$A$8=D2)*($C$ 2:$C$8=2)
*ROW($A$2:$A$8))),"")
and copy down.

Tony
-----Original Message-----
excel 2000

I am having trouble finding the proper function to arrive
at the following answer for this table:

employee store
john store1
dave store1
tom store1

bill store2
john store2
ken store2

dave & tom are at store1 all the time
bill & ken are at store2 all the time
john works both stores during the week

On my report, I want to show all the stores listed for
each employee

stores
employee column 1 | column 2
bill store2 |
ken store2 |
john store1 | store2
dave store1 |
tom store1 |

johns information has to appear in the same row. I've
totalled all his sales infomation together.

i've tried several functions, but can't get the right
combination.

do i use index & match, countif, choose?

any help???

thank you
greg
.

  #3  
Old September 16th, 2003, 04:55 PM
Greg Malenky
external usenet poster
 
Posts: n/a
Default Index & Match

works great!

Thank You, Acw.

Greg

-----Original Message-----
Greg

Data is in the range A1:B8 as described. The output is

in
2 columns.

In cell C2 enter the formula
=COUNTIF($A$2:A2,A2)
and copy down.

In cell D1 enter the heading Employee and in the range

D2 -
D6 enter the employee names.

In Cell E2 enter the formula
=INDEX($B$1:$B$8,SUMPRODUCT(($A$2:$A$8=D2)*($C$2: $C$8=1)
*ROW($A$2:$A$8)))
and copy down to E6.

In Cell F2 enter the formula
=IF(SUMPRODUCT(($A$2:$A$8=D2)*($C$2:$C$8=2)*ROW

($A$2:$A$8))
0,INDEX($B$1:$B$8,SUMPRODUCT(($A$2:$A$8=D2)*

($C$2:$C$8=2)
*ROW($A$2:$A$8))),"")
and copy down.

Tony
-----Original Message-----
excel 2000

I am having trouble finding the proper function to

arrive
at the following answer for this table:

employee store
john store1
dave store1
tom store1

bill store2
john store2
ken store2

dave & tom are at store1 all the time
bill & ken are at store2 all the time
john works both stores during the week

On my report, I want to show all the stores listed for
each employee

stores
employee column 1 | column 2
bill store2 |
ken store2 |
john store1 | store2
dave store1 |
tom store1 |

johns information has to appear in the same row. I've
totalled all his sales infomation together.

i've tried several functions, but can't get the right
combination.

do i use index & match, countif, choose?

any help???

thank you
greg
.

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.