Dynamic Formula - Insert Value at Certain Index

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
1,175
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I"m having a mental block with this one. In column C, it indicates which index of the data (column F) needs to be changed. Change the current data to the value in column D.
Book1
ABCDEFG
1CountCummulative CountIndex to insert if only count is more than 1ValueCurrentExpected
233310,00030,00030,000
314FALSE29,00030,00030,000
415FALSE5,00030,00010,000
549920,00030,00030,000
6110FALSE30,00030,00030,000
730,00030,000
830,00030,000
930,00030,000
1030,00020,000
1130,00030,000
Sheet5
Cell Formulas
RangeFormula
B2:B6B2=SCAN(0,A2:A6,LAMBDA(a,b,a+b))
C2:C6C2=IF(A2:A6>1,B2#)
Dynamic array formulas.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
in G2: =IFERROR(VLOOKUP(ROW()-1,$C$2:$D$6,2,FALSE),F2) and copy down.

HTH
 
Upvote 0
Appreciate your response, but I'm looking for
1 ) A dynamic array formula instead of dragging something down. (I forgot to put it in the body of the thread, but it was in my thread title).
2) The data won't be necessary be in row 2 all the time, so ROW()-1 won't work.
 
Upvote 0

Forum statistics

Threads
1,216,500
Messages
6,131,015
Members
449,615
Latest member
Nic0la

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