Distributing the Prime value to secondary value to the subsequent Cells

abuharvey

New Member
Joined
Mar 7, 2015
Messages
32
Office Version
  1. 365
Dear Genius Here I have attached the Mini sheet of my requirement

I need Formula for this distribution

Thanks in advance for your valuable time

Asking_Daniel.xlsx
ABCDEFG
1Prime Value Secondary ValueTo be Distributed
256.0016.0016.0016.0016.008.00
340.0010.0010.0010.0010.0010.00
412.505.505.505.501.50
Sheet1
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Office 365

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Many thanks for your reply. Would this work:

Excel Formula:
=LET(
a,A2:A4,
b,B2:B4,
c,QUOTIENT(+a,+b),
d,MOD(a,b),
e,MAX(c+IF(d=0,0,1)),
f,MAKEARRAY(ROWS(a),e,LAMBDA(x,y,IF(y<=CHOOSEROWS(c,x),CHOOSEROWS(b,x),IF(y=CHOOSEROWS(c+1,x),CHOOSEROWS(d,x),"")))),
IF(f=0,"",f))
 
Upvote 0
Solution
Many thanks for your reply. Would this work:

Excel Formula:
=LET(
a,A2:A4,
b,B2:B4,
c,QUOTIENT(+a,+b),
d,MOD(a,b),
e,MAX(c+IF(d=0,0,1)),
f,MAKEARRAY(ROWS(a),e,LAMBDA(x,y,IF(y<=CHOOSEROWS(c,x),CHOOSEROWS(b,x),IF(y=CHOOSEROWS(c+1,x),CHOOSEROWS(d,x),"")))),
IF(f=0,"",f))
Mass .... Working in fantastic way , thank you genies ..... Thank you thank you
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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