How to Increment Excel cell reference by any number

ArranI

New Member
Joined
Jun 26, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

Hopefully a simple question for those much more advanced than I.

I'm looking to determine a way of referencing a cell range which increases in increments of 1, however the range that is to show the data increases in increments of 6.

i.e.
A2 to equal L2
A7 to equal L3
A12 to equal L4
A17 to equal L5

The example file below is a simplified aspect of what I'm after, with only 4 Part#s.
The actual file, contains hundreds which is why a manual option is not feasible.

Would really appreciate any insights into how best to solve this.

Thank you!

AI - Example.xlsx
ABCDEFGHIJKLMN
1Part#DescriptionLeadtimeDivisionW1W2W3Part#DescriptionLeadtime
2124578Nut20Balance53530124578Nut20
3124578Nut20Stock20535134679Pin20
4124578Nut20Transit50215487Lever35
5124578Nut20 - North505235689Bolt30
6124578Nut20 - South10200
7134679Pin20Balance-102-11
8134679Pin20Stock0-102
9134679Pin20Transit20
10134679Pin20 - North205
11134679Pin20 - South888
12215487Lever35Balance104085
13215487Lever35Stock501040
14215487Lever35Transit5050
15215487Lever35 - North3005
16215487Lever35 - South10200
17235689Bolt30Balance-152520
18235689Bolt30Stock0-1525
19235689Bolt30Transit60
20235689Bolt30 - North505
21235689Bolt30 - South10200
Sheet1
Cell Formulas
RangeFormula
E17:G17,E12:G12,E7:G7,E2:G2E2=(SUM(E3:E4)-(SUM(E5:E6)))
F3:G3,F18:G18,F13:G13,F8:G8F3=E2
A3:C6,A18:C21,A13:C16,A8:C11A3=A2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:G21Cell Value<0textNO
 
This is a perfect example of what should be done using VBA UserForms. You can create a front-end application that is built in Excel and never see the spreadsheets. It would take time to develop but once completed it would be a custom designed parts ordering system.
Can't say I agree with that - VBA UserForms in Excel are a huge pain in the neck, IMO!

All things equal, if you have Microsoft Access (which is designed for database work), forms are MUCH easier to use in Access, as you just drag and drop the fields in your form (and don't need to use VBA to map each and every field manually!). Of course, it helps to be knowledgeable and proficient is Access.

Power Query could be a possible Excel solution too.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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