searching 2 values from 2 cells

S

Steve

hi,

i have this formula that i have set up but i dont know if i am going down
the wrong route or its just the final bit i cannot work out....
i am trying to view the value in coloum 'I' when the first value in coloum
'B' is found....
there will (or should) only be one value of coloum 'B' as this is a list of
names which gets generated each day. how to i view the value it brings up in
coloum 'I'?

=SUMPRODUCT(--('[Reporting
10-01-04.xls]Sheet2'!B$2:$B1000=B1),--('[Reporting
10-01-04.xls]Sheet2'!$I$2:$I1000=" "))

thank you in advance!
 
B

Bernard Liengme

If you want to return a value from column I:
=SUMPRODUCT(--('[Reporting 10-01-04.xls]Sheet2'!B$2:$B1000=B1), '[Reporting
10-01-04.xls]Sheet2'!$I$2:$I1000)
I think your formula try to count how many times the name in B occurred in
the table when the I column had 6 (?) blanks in it.

Have you tired SUMIF or INDEX/MATCH ?
best wishes
 
J

Jim Thomlinson

It sounds more like you want a vlookup or IMO better still an Index Match
formula.

=index('[Reporting 10-01-04.xls]Sheet2'!$I$2:$I1000, match(B1, '[Reporting
10-01-04.xls]Sheet2'!$B$2:$B1000, 0))
 
T

T. Valko

It sounds like you want a "lookup" formula rather than a "counting" formula.

See if this does what you want:

=INDEX('[Reporting 10-01-04.xls]Sheet2'!$I$2:$I$1000,MATCH(B1,'[Reporting
10-01-04.xls]Sheet2'!$B$2:$B$1000,0))
 
B

Bernard Liengme

SUMIF example:
=SUMIF([Book2]Sheet2!$B$2:$B$1000,B1,[Book2]Sheet2!$I$2:$I$1000)
INDEX/MATCH example"
=INDEX([Book2]Sheet2!$I$2:$I$1000,MATCH(B1,[Book2]Sheet2!$B$2:$B$1000,0))

best wishes
 
T

T. Valko

It sounds like you want a "lookup" formula rather
than a "counting" formula.

Although, SUMPRODUCT can be used as a "lookup" formula *IF* the data to be
returned is numeric and the "lookup value" is unique.

--
Biff
Microsoft Excel MVP


T. Valko said:
It sounds like you want a "lookup" formula rather than a "counting"
formula.

See if this does what you want:

=INDEX('[Reporting 10-01-04.xls]Sheet2'!$I$2:$I$1000,MATCH(B1,'[Reporting
10-01-04.xls]Sheet2'!$B$2:$B$1000,0))

--
Biff
Microsoft Excel MVP


Steve said:
hi,

i have this formula that i have set up but i dont know if i am going down
the wrong route or its just the final bit i cannot work out....
i am trying to view the value in coloum 'I' when the first value in
coloum
'B' is found....
there will (or should) only be one value of coloum 'B' as this is a list
of
names which gets generated each day. how to i view the value it brings up
in
coloum 'I'?

=SUMPRODUCT(--('[Reporting
10-01-04.xls]Sheet2'!B$2:$B1000=B1),--('[Reporting
10-01-04.xls]Sheet2'!$I$2:$I1000=" "))

thank you in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top