Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Integer to Workbook Vlookup

Status
Not open for further replies.

tqeonline

MIS
Oct 5, 2009
304
US
Hello to All!

So I am confused on where to begin. I currently have a macro that compares data between a database worksheet and copies over information.

Ex. Say you have connector 1234 on spread sheet it takes that connector and compares it to the Database and returns random information such as "Label Name, Terminal, Seal, Wire Length..."

This is part of the code

Code:
    Range("B" & i + 1).Formula = "=IF(ISNA(VLOOKUP(A" & i + 1 & ",'" & LabelDB & "'!$B:$Z,2,FALSE)),A" & i + 1 & ",VLOOKUP(A" & i + 1 & ",'" & LabelDB & "'!$B:$Z,2,FALSE))"

This returns the data for the Label.

Well what I would like to do is:

If a label is returned then go to the "LabelDB" workbook and add to column L whatever is in L plus 1. What this will do is give me a count of how many times this part has been requested.

I just can't figure out how to store the location of the vlookup data that is on a seperate workbook then go to that workbook and add that value to column L.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top