Dynamic Formula - Insert Value at Certain Index

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
2,139
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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