VLookup question from the new guy

DonJackson

New Member
Joined
Apr 13, 2011
Messages
11
Hello all! I'm lost, and not that good at VB.:)
I have a tab (CARS) that looks something like

Car Class
1 1
8 2
9 1
6 3
2 1

Lets assume we're using A1 and B1 for this info.

On my new tab (WINNERS) I need to list the car numbers based on class.
So the first three cars in class 1 will look something like this.
I need to look down to B300 for any class #1 entrys.

Car Class
1 1
9 1
2 1

Then I'll move to class 2 etc....
Maybe I'm trying to make too much of this, or the vlookup isn't the way to go?
Any help would be much appreciated.
Don
 
Hey guys, I'm almost there.
One new problem. I'm looking for the last cell that has data in it. I'm using the following:
finalrow = AddressSheet.Cells(301, 9).End(xlUp).Row

This finds my formula in the cells down to 310. I need only cells that has had the data copied over. The finalrow result is always 301, even though my data ends much above that.
Any thoughts?
Thanks again.
Don
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try something like
Code:
finalrow=worksheets."Sheetname".cells(rows.count, "I").end(xlup).row
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top