If Statement + Is Number + CountA

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hello-

I have the following data set, which I'm trying to calculate the time spent based on =CountA of the items (columns A-E below).

Col. ABCDEFGHI
Item 1Item 2Item 3Item 4Item 5Total Time Spent (mins.)Time Spent - Item 1Time Spent - Item 2Time Spent - Item 3
100,00050,000000157.57.50

<tbody>
</tbody>

I'm trying to calculate columns G, H, and I. Column F time should be split evenly if there is values in columns A-E.

Right now my formula is =IF(A2=ISNUMBER(A2),F2/COUNTA($B2:$B26,0) but gives me the wrong output.

Really would appreciate any help where possible.

Thanks,
M
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

see if this helps:


Book1
ABCDEFGHI
1Item 1Item 2Item 3Item 4Item 5Total Time Spent (mins.)Time Spent - Item 1Time Spent - Item 2Time Spent - Item 3
210050000157,57,50
Sheet1
Cell Formulas
RangeFormula
G2=IF(A2>0,$F2/COUNTIF($A2:$E2,">0"),0)
H2=IF(B2>0,$F2/COUNTIF($A2:$E2,">0"),0)
I2=IF(C2>0,$F2/COUNTIF($A2:$E2,">0"),0)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,595
Members
449,089
Latest member
Motoracer88

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