Macro that selects specific cells and puts values into other cells

scooby33

New Member
Joined
Nov 15, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I currently have a formula that utilizes the round, offset, and row functions to pull data from specific cells. It is pretty quick, however i am looking for help to make it faster. Currently when i fill the formula across rows, i have to go in and change cell references to the correct cells before i can drag the formula down. If there is a way to utilize a macro to speed this up even quicker i would greatly appreciate some assistance!

In the pictures i uploaded you can see the desired output where it grabs the number, the letter (if there is one), and percentage sign and puts all the information into a table.

the current forumla i am using is:

=ROUND(OFFSET($D$6,(ROW(D1)-1)*6,0)*100,0)&$M$5&OFFSET($D$7,(ROW(D1)-1)*6,0)

If you need more information please let me know, thank you!
 

Attachments

  • reference image 1.png
    reference image 1.png
    51.6 KB · Views: 11

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You could do it in one formula, along these lines:

ABCDEFGH
1
2ABC
3123
4A1B2C3
5D4E5F6
6G7H8I9
7J0K1L2
8DEF
9456
10
11
12
13
14GHI
15789
16
17
18
19
20JKL
21012
22
Sheet1
Cell Formulas
RangeFormula
F4:H7F4=LET(d,B2:D21,FILTER(d,MOD(ROW(d),6)=ROW(INDEX(d,1,)))&FILTER(d,MOD(ROW(d),6)=ROW(INDEX(d,2,))))
Dynamic array formulas.
 
Upvote 0
That should really be ...

F4: =LET(d,B2:D21,FILTER(d,MOD(ROW(d)-ROW(INDEX(d,1,)),6)=0)&FILTER(d,MOD(ROW(d)-ROW(INDEX(d,1,)),6)=1))

... to allow for d starting further down the worksheet rows.
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,992
Latest member
prabhuk279

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