How to Divide Its own Cell by Another Column Delimited Text (Dynamic Array)

staticfluids

New Member
Joined
Apr 24, 2024
Messages
8
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Hi all, i hope you're doing well. First of all, sorry for bad English.

I'm currently using Excel 2021 and trying to experiment with Dynamic Array formula lately. It's quite helping with my daily Excel use.
I have a one case where i want to divide its own cell using a value from another cell. And the other cell it's not a number but a general text (number delimited with comma).

I have an array like this (Original):

NoNameValueDividedRatioSavings 1Savings 2Savings 3
1​
Testing 1Rp 20,000,000.00
2​
0.5,0.5Rp 10,000,000.00Rp 10,000,000.00
2​
Testing 2Rp 4,000,000.00
1​
1​
Rp 4,000,000.00
3​
Testing 5Rp 3,000,000.00
1​
1​
Rp 3,000,000.00
4​
Testing 6Rp 9,000,000.00
3​
0.5,0.2,0.3Rp 3,000,000.00Rp 3,000,000.00Rp 3,000,000.00

F1
Excel Formula:
="Savings " & SEQUENCE(1,(MAX(D:D)))
F2
Excel Formula:
=C2/D2 + ((SEQUENCE(,D2)<=C2-D2*C2/D2))

I want to modify the formula on cell F2 so the expected array would be like this:
NoNameValueDividedRatioSavings 1Savings 2Savings 3
1​
Testing 1Rp 20,000,000.00
2​
0.5,0.5Rp 10,000,000.00Rp 10,000,000.00
2​
Testing 2Rp 4,000,000.00
1​
1​
Rp 4,000,000.00
3​
Testing 5Rp 3,000,000.00
1​
1​
Rp 3,000,000.00
4​
Testing 6Rp 9,000,000.00
3​
0.5,0.2,0.3Rp 4,500,000.00Rp 1,800,000.00Rp 2,700,000.00

P2
Excel Formula:
=$M2*0.5
R5
Excel Formula:
=$M5*0.3

I'm trying to look a formula that able to divide Savings column by the Ratio column without having to change manually one by one.
Any idea how?

Thank you.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi, assuming the "value" column is a number with special formatting - then, if I understand correctly, you can try something like this.

Book1
ABCDEFGH
1NoNameValueDividedRatioSavings 1Savings 2Savings 3
21Testing 120,000,000.0020.5,0.540,000,000.0040,000,000.00
32Testing 24,000,000.00114,000,000.00
43Testing 53,000,000.00113,000,000.00
54Testing 69,000,000.0030.5,0.2,0.318,000,000.0045,000,000.0030,000,000.00
Sheet1
Cell Formulas
RangeFormula
F2:G2,F5:H5,F3:F4F2=C2/TEXTSPLIT(E2,",")
Dynamic array formulas.
 
Upvote 1
Another option
Fluff.xlsm
ABCDEFGH
1NoNameValueDividedRatioSavings 1Savings 2Savings 3
21Testing 120,000,000.0020.5,0.540,000,000.0040,000,000.00
32Testing 24,000,000.00114,000,000.00
43Testing 53,000,000.00113,000,000.00
54Testing 69,000,000.0030.5,0.2,0.318,000,000.0045,000,000.0030,000,000.00
Sheet6
Cell Formulas
RangeFormula
F2:G2,F5:H5,F3:F4F2=TRANSPOSE(C2/FILTERXML("<k><m>"&SUBSTITUTE(E2,",","</m><m>")&"</m></k>","//m"))
Dynamic array formulas.
 
Upvote 1
Solution
Hi FromR and Fluff,
Thank you for the answer. Both of them working perfectly, and i got the logic. But due to my Excel version, my setup doesn't support TEXTSPLIT function. So, I used the Fluff version.

However, I may have used the wrong wording as it results the wrong question, so you must be misunderstood what I want. Sorry, my fault. (The logic is same though :biggrin:)
What I expect would be, the F cell is the result from Value multiplied by the Ratio. So, the result to each Savings would produce the SUM of the Savings to be the same value as the C cells.

My main objective is to divide each Savings per part.
Example:
0.5 (50%) of 9.000.000 for the Savings 1 = 4.500.000,
0.2 (20%) of 9.000.000 for the Savings 2 = 1.800.000, and
0.3 (30%) of 9.000.000 for the Savings 3 = 2.700.000 and so on

But I think I can just give a little experiment with the formula you provided. Thanks for being helpful.

Have a great day!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,223,869
Messages
6,175,087
Members
452,611
Latest member
bls2024

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