Select, copy and paste cells based on a given value

crimewatcher

New Member
Joined
Jul 15, 2009
Messages
16
I keep track of the Pick 3 lottery numbers. Have a workbook with two sheets:

The Pick 3 sheet has all 1000 numbers in Column A sorted by date with the most current on top. (Drawings are held twice a day - D for midday and N for evening.)

The Vlookup function works great to find the last date the number was drawn.

Trying to figure out a much quicker way a way to:

Find the most current drawing of the numbers in the Last 10 sheet (Column A).

Select the next 10 cells under the most current number from Column A in the Pick 3 sheet.

Copy them with a paste special, transpose option into the Last 10 sheet in columns B thru K.

Find the 2nd most current drawing of the numbers in the Last 10 sheet (Column A).

Select the next 10 cells under the 2nd most current numbers from Column A in the Pick3 sheet.

Copy them with a paste special, transpose option into into the Last 10 sheet columns M thru V.

Please see example at http://gozips.uakron.edu/~evert/Last10.xlsx

Thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

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