Nested if statement problem!

S

Simon Lloyd

Hi i have been given a nested if statement by Aaron as below and
modified it to the bottom statement so that it accumilates 8hrs ever
instance it finds in a named range however the only part that works i
the first section for 8hours but not the latter for 12 hours, can yo
help?

Thanks!

Simon

IF(COUNTIF(Hols1,"Bloggs J"),COUNTIF(Hols1,"Blogg
J")+8,IF(COUNTIF(Hols2,"Bloggs J"),COUNTIF(Hols1,"Bloggs J")+12,0))

=IF(COUNTIF(Hols1,"Bloggs J"),COUNTIF(Hols1,"Blogg
J")*8,IF(COUNTIF(Hols2,"Bloggs J"),COUNTIF(Hols2,"Bloggs J")*12,0)
 
S

Simon Lloyd

All sorted now thanks to Toppers!

=COUNTIF(Hols1,"Bloggs J")*8+COUNTIF(Hols2,"Bloggs J")*1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top