Calculation solution required if a cell is NUL

ateeqsindhu

New Member
Joined
Jan 31, 2021
Messages
10
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
i have a data set wherein few fields contain data but some also hold NUL due to which my calculation is changed. this is not complex since it is not standard as any column out of 4 columns can be NUL hence making it difficult to fix the formula.

Data for all 12 monthsData for 6 monthsMY Result with FlawsRequirement
=COUNTA(C5:F5)=COUNTA(C5)=COUNTA(D5)=COUNTA(E5)=COUNTA(F5)=IF(COUNTA(C4,E4)=2, (B4/((C4+E4)/18)), (B4/((C4+E4)/12)))=IF(COUNTA(D4,F4)=2, (A4/((D4+F4)/18)), (A4/((D4+F4)/12)))calculate %age based upon either 18 months or 12 or even 6 months where appliable
123456789101112131415
CR_TURNOVERDR_TURNOVERACTUAL_DR_TURNOVER_21ACTUAL_CR_TURNOVER_21ACTUAL_DR_TURNOVER_22ACTUAL_CR_TURNOVER_22Count ACount ACount ACount ACount ADR Tun Vs Act DrCR Tun Vs Act CRDR Tun Vs Act DrCR Tun Vs Act CR
600,000600,00034581,5011,238,2401,976,60041111872%525%
600,000700,0006,994,7017,001,9855,526,4955,620,00041111101%86%
900,000700,000300,173952,000200112798%1134%
1,000,000900,0004,832,1543,495,0005,024,1495,400,00041111164%202%
300,000350,00013,669,78211,579,578160,4873,2464111146%47%
4,834,2003,799,00045,587,75258,009,78240,620,39324,600,9744111179%105%
800,000700,000547,000800,173281,308301111050%1738%
800,000650,000547,000800,173281,30830111975%1738%
200,000150,000100,000197,279211001800%1217%
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
So which formula is problematic?
Can you walk us through an example, using the data you posted, telling us what is happening, and exactly what you would like to happen instead?
 
Upvote 0
i have a data set wherein few fields contain data but some also hold NUL due to which my calculation is changed. this is not complex since it is not standard as any column out of 4 columns can be NUL hence making it difficult to fix the formula.

Data for all 12 monthsData for 6 monthsMY Result with FlawsRequirement
=COUNTA(C5:F5)=COUNTA(C5)=COUNTA(D5)=COUNTA(E5)=COUNTA(F5)=IF(COUNTA(C4,E4)=2, (B4/((C4+E4)/18)), (B4/((C4+E4)/12)))=IF(COUNTA(D4,F4)=2, (A4/((D4+F4)/18)), (A4/((D4+F4)/12)))calculate %age based upon either 18 months or 12 or even 6 months where appliable
123456789101112131415
CR_TURNOVERDR_TURNOVERACTUAL_DR_TURNOVER_21ACTUAL_CR_TURNOVER_21ACTUAL_DR_TURNOVER_22ACTUAL_CR_TURNOVER_22Count ACount ACount ACount ACount ADR Tun Vs Act DrCR Tun Vs Act CRDR Tun Vs Act DrCR Tun Vs Act CR
600,000600,00034581,5011,238,2401,976,60041111872%525%
600,000700,0006,994,7017,001,9855,526,4955,620,00041111101%86%
900,000700,000300,173952,000200112798%1134%
1,000,000900,0004,832,1543,495,0005,024,1495,400,00041111164%202%
300,000350,00013,669,78211,579,578160,4873,2464111146%47%
4,834,2003,799,00045,587,75258,009,78240,620,39324,600,9744111179%105%
800,000700,000547,000800,173281,308301111050%1738%
800,000650,000547,000800,173281,30830111975%1738%
200,000150,000100,000197,279211001800%1217%

Column 1 contains data of CR Limit and Column 2 contain data of DR Limit of an item. this is to be compared with column 3 to 6 in percentage% to assess how much over / under that item performed. Column 3 and 4 are data of 12 months of 2021 and Column 5 & 6 are data of 6 months of 2022, hence total period under review is 18 months.
Colum 3 & 5 are to be compared with Column 2 and Column 4 & 6 are to be compared with column 1
Under Column 7 i've counted data appearances in column 3 to 6 so in 1st row it is 4 as all columns (3 t o6) contain data and in row no3 it is 2 as only column 5& 6 contain data and so on.

REQUIREMENT: have to calculate actual performance in comparison with Limits if all 4 columns have data then its ok but when its only 2 columns have the data then it is complex, as the data appearing might be under column 3 or 4 (making it data for 12 months) OR 5 or 6 (making it data for 6 months).

PROBLEM

a) single furmula whether data in column 3 & 5 OR 4 & 6 is available or any one missing / NUL same should be / the figure should be averaged and them comparison with either column 1 or 2 be made to achieve %
 
Upvote 0
Please walk us through actual examples from your data, showing us how you arrived at the expected result for each situation.
Be sure to include an example from each situation (i.e. data in all 4 columns, data only in columns 5 & 6, etc).

I want to see the actual value you want back, so we can work with your sample data to see how you arrive at that value for each situation.
 
Upvote 0

Forum statistics

Threads
1,215,155
Messages
6,123,332
Members
449,098
Latest member
thnirmitha

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