+ Reply to Thread
Results 1 to 2 of 2

Nested if statement problem!

  1. #1
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Nested if statement problem!

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

    Thanks!

    Simon

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

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

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Thumbs up

    All sorted now thanks to Toppers!

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1