vlookup with match

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

Guest

Here is the code:
=VLOOKUP(S7,A4:A1000,MATCH(T3,B4:B1000,0)+1,FALSE)
I am getting a #ref error.

s7 is the date I am looing for in a column and t3 is text that I am looking
for. What I want is to first look by the date and if the date matches it
looks for the text and if both match it will add the number of times that it
sees those 2 together and return that value. Any ideas on how to get this to
work?
 
So far so good is there an easy way to copy this or is do I need to enter
this into every cell? I have close to 500 cells.
 
If I understand correctly, you want to copy this logic to other cells
programmatically:

activecell.copy
range(activecell,activecell.offset(500,0)).paste
application.cutcopymode = false

Remarks:

1. The offset property uses the r,c convention - therefore, the code above
tells Excel to select a range that is 501 rows by 1 column, relative to the
activecell's address

1. You may want to freeze relevant cells in your SUMPRODUCT formula:
=SUMPRODUCT(($A$4:$A$1000=S7)*($B$4:$B$1000=T3))

HTH
 

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

Similar Threads

vlookup issue 2
Secure Erase Samsung Galaxy S7 8
Odd behavior using CONCATENATE 4
VLOOKUP question 1
EXCEL Formula 3
Galaxy S7 Edge vs iPhone 6S Plus 4
Search and Display 5
Cell Change triggers Worksheet Event 13

Back
Top