Prorate the amount based on other Cells

imran1059

Board Regular
Joined
Sep 28, 2014
Messages
112
Hello Everone,

My Column "A" contains the amount that I want to prorate based on if cells in column "B", "C" and "D" in same row are empty or not . Some of them have numerical values in them. I want a formula/macro that will check how many columns in a specific row are not empty and then divide amount that is available in column "A" with the number of columns that are not empty. My example is shown below. My output should be displayed in next columns. The total of 3 columns of my desired output must be the same of Amount in Column "A" for each row.

AmountValue 1Value 2Value 3Desired Output Column 1Desired Output Column 2Desired Output Column 3
6,543.001058910387 3,271.503,271.500.00
89,650.0011583 11,583.000.000.00
8,540.001586313335148962,846.672,846.672,846.67
40,786.0020587 40,786.00
164,580.0025899190541864754,860.0054,860.0054,860.00

<colgroup><col><col span="3"><col span="3"></colgroup><tbody>
</tbody>



Thanks,
Imran.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Supposing your first row is row 2 and Output 1 in col F
In F2 enter =A2/COUNT(B2:D2)
In G2 =(A2/count((B2:D2))*(count(b2:d2)>=2)
In H2 =(A2/count((B2:D2))*(count(b2:d2)=3)

Then pull down as required
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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