Display cell based on multiple cross-references

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have over 1,000 rows with 3 columns of non-unique numbers/letters (no two
rows are entirely the same).

4 790 54
4 794 93
4 797 20
4 797 74X
4 799 103
5 511 93
5 511 120
5 520 74X


I have 2 cells that I will use to paste in numbers from another database:

H1=103
H2=799

I need a new cell query like:

If H1=ColumnC AND H2=ColumnB then display the value of ColumnA... (4 in this
example).

Please save me before I pull more hair out! Thanks!
 
=SUMPRODUCT(--(C1:C1000=H1),--(B1:B1000=H2),A1:A1000)

Although this only works as long as column A is numbers and there are
no duplicate rows (i.e. 2 rows with 799 and 103)
 
Column A is numbers and the rows are unique AND it works like a charm! Thanks
a TON!
 

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

Back
Top