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.
<colgroup><col><col span="3"><col span="3"></colgroup><tbody>
</tbody>
Thanks,
Imran.
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.
Amount | Value 1 | Value 2 | Value 3 | Desired Output Column 1 | Desired Output Column 2 | Desired Output Column 3 |
6,543.00 | 10589 | 10387 | 3,271.50 | 3,271.50 | 0.00 | |
89,650.00 | 11583 | 11,583.00 | 0.00 | 0.00 | ||
8,540.00 | 15863 | 13335 | 14896 | 2,846.67 | 2,846.67 | 2,846.67 |
40,786.00 | 20587 | 40,786.00 | ||||
164,580.00 | 25899 | 19054 | 18647 | 54,860.00 | 54,860.00 | 54,860.00 |
<colgroup><col><col span="3"><col span="3"></colgroup><tbody>
</tbody>
Thanks,
Imran.