auto populate based off number entered.

Jstump

New Member
Joined
Oct 25, 2023
Messages
36
Office Version
  1. 365
Platform
  1. Windows
What formula can i enter in one of the cells that are below 1-6 to make them autopoulate based of the entered number? i want tp be able to enter 1-6 where # is and the the next 3 columns would autopopulate a color where the "" is.

Kane 1.xlsx
CDEF
1
2
3Pile typesLead descriptionExtension desctriptionCap description
41blueblueblue
52greengreengreen
63redredred
74yellowyellowyellow
85brownbrownbrown
96purplepurplepurple
10
11
12
13#""""""
14#""""""
15#""""""
16#""""""
17#""""""
Input page
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You can put this formula in cell B13 and copy to the rest of the cells in that grid:
Excel Formula:
=IFERROR(VLOOKUP($A13,$A$4:B$9,COLUMN(),0),"")

1705346674840.png
 
Upvote 0
Likewise, you could also use the new FILTER function, placing this formula in cell B13 and copy down column B for all your rows:
Excel Formula:
=FILTER($B$4:$D$9,$A$4:$A$9=$A13,"")
 
Upvote 0
Solution
I had to tweak it a bit to make it work for what i needed but thanks! this is what i ended up using =FILTER('Input page'!D4:F9,'Input page'!C4:C9=$B2,"")

Instead of copying and pasting all the way down, is there a way i could change to formula to add it to the collumn D if there is data in column A? This spreadsheet autopoulates numbers in column A based off entering a number in another sheet. for example if i entered 2 on the other sheet there would only be data in A2, A3. if i entered 4000 it would enter data all the way down to row 4002.

Kane 1.xlsx
ABCDEF
1PIER #PILE TYPESTRUCTURE NAMELEAD DESCRIPTION EXTENSION DESCRIPTIONCAP DESCRIPTION
2HP-011blueblueblue
3HP-02
4HP-03
5HP-04
6HP-05
7HP-06
8HP-07
9HP-08
10HP-09
11HP-10
12HP-11
13HP-12
14HP-13
15HP-14
16HP-15
As-built 1
Cell Formulas
RangeFormula
A2:A4001A2="HP-"&TEXT(SEQUENCE('Input page'!B3),"00")
D2:F2D2=FILTER('Input page'!D4:F9,'Input page'!C4:C9=$B2,"")
Dynamic array formulas.

Likewise, you could also use the new FILTER function, placing this formula in cell B13 and copy down column B for all your rows:
Excel Formula:
=FILTER($B$4:$D$9,$A$4:$A$9=$A13,"")
 
Upvote 0
If you set your table up as a table, the formulas will automatically appear in every row, and you won't need to do anything at all.
If not, just pre-populate the formula down for as far as you like. The formula is already programmed to return a blank if there is no match, so it shouldn't hurt anything to pre copy it down.
 
Upvote 0
When i try and populate down it keeps mutliplying and spilling over.

Kane 1.xlsx
ABCDEF
1PIER #PILE TYPESTRUCTURE NAMELEAD DESCRIPTION EXTENSION DESCRIPTIONCAP DESCRIPTION
2HP-011blueblueblue
3HP-02 000
4HP-03#SPILL!
5HP-04#SPILL!
6HP-05#SPILL!
7HP-06000
8HP-07000
9HP-08000
10HP-09
11HP-10
As-built 1
Cell Formulas
RangeFormula
A2:A21A2="HP-"&TEXT(SEQUENCE('Input page'!B3),"00")
B3B3=FILTER($B$4:$D$9,$A$4:$A$9=$A13,"")
D7:F9,D4:D6,D2:F3D2=FILTER('Input page'!D4:F9,'Input page'!C4:C9=$B2,"")
Dynamic array formulas.
 
Upvote 0
My bad, i fixed it. I forgot to add the $ to lock the cells.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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