Please need help with INDEX/MATCH or other formulas (see post)

jwilson7

New Member
Joined
Jul 7, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I am needing to copy my Item Number value (B2) to cells B5-B7 using index/match or any other formula. I need that Item Number to be copied until a new item number is reached (20100005). Then that item number needs to be copied to cells B16-B19 and so on.

The picture is an example spreadsheet. I cannot just copy and drag because my actual spreadsheet has over 400,000 rows

Thanks

Screen Shot 2021-07-07 at 7.46.38 PM.png
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to Mr. Excel,

You don't need to copy your entire worksheet...just sample data. If you use XL2BB, helpers here won't have to try to recreate your data.

Is a VBA solution acceptable?
 
Upvote 0
Welcome to Mr. Excel,

You don't need to copy your entire worksheet...just sample data. If you use XL2BB, helpers here won't have to try to recreate your data.

Is a VBA solution acceptable?
My apologies. Id rather not because it is a spreadsheet that will need to be added to each year for the company I work for sorry
 
Upvote 0
No need to delete the previous. Just for the future.
 
Upvote 0
I thought I had one or two, but think it has to be done with VBA. I'll look at it again tomorrow. maybe with a helper column it can be done. Not sure.
Don't give up hope. Lot's of good people here. Someone might have a solution.
 
Upvote 0
I agree with @kweaver. If you don't want to use VBA or Power Query then I have used the approach below quite a bit in the past which uses helper columns.
When you get new data just copy it into the the left hand side and just make sure the formulas on the right hand side go all the way to the bottom.
If you make the whole thing a table you don't even need to extend the formula, the table will do that for you.

I find a yes / no flag helpful if you want to go straight to a pivot, where you can use it as a filter. Alternatively you can filter it in place.

20210708 Repeat Headings Formula.xlsx
ABCDEFGHIJK
1PROJECTNUMBERItemNumberDescriptionDateUnitQtyEstAvgAwardDetail Line YNItem NoItem Description
220100000Clear and GrubLump/SumNo20100000Clear and Grub
3No20100000Clear and Grub
4No20100000Clear and Grub
5Project 1Job 11/01/20111101512Yes20100000Clear and Grub
6Project 2Job 21/01/20111221618Yes20100000Clear and Grub
7Project 3Job 31/01/20111171916Yes20100000Clear and Grub
8No20100000Clear and Grub
9Average for first quarterNo20100000Clear and Grub
10No20100000Clear and Grub
11No20100000Clear and Grub
12No20100000Clear and Grub
1320100005Rem of DebrisNo20100005Rem of Debris
14No20100005Rem of Debris
15No20100005Rem of Debris
16Project 6Job 11/01/20111561934Yes20100005Rem of Debris
17Project 7Job 21/01/20111366646Yes20100005Rem of Debris
18Project 8Job 31/01/20111354333Yes20100005Rem of Debris
19Project 9Job 41/01/20111222Yes20100005Rem of Debris
20No20100005Rem of Debris
21Average for first the yearNo20100005Rem of Debris
22No20100005Rem of Debris
Data
Cell Formulas
RangeFormula
I2:I22I2=IF(ISBLANK(A2),"No","Yes")
J2:J22J2=IF(ISBLANK($B2),J1,$B2)
K2:K22K2=IF(ISBLANK($B2),K1,$C2)
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Need help using INDEX/MATCH or other formul to copy cell value until next value is reached
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,308
Messages
6,124,178
Members
449,146
Latest member
el_gazar

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