+ Reply to Thread
Results 1 to 3 of 3

Correction to Formula

  1. #1
    Registered User
    Join Date
    05-21-2007
    Posts
    72

    Correction to Formula

    I've pasted a formula which I use to find the piece of work which took longest to complete for each month.

    I now need to add on cases with Status C which is found in column F. I cant quite get it to work. I know it needs to be entered using shift+ctrl+enter.

    =MAX(IF(MONTH(PA!$A$2:$A$3000)=6,IF(YEAR(PA!$A$2:$A$3000)=2007,(PA!$K$2:$K$3000))))

    So in there I need IF(PA!$F$2:$F$3000="C").

    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =MAX(IF(MONTH(PA!$A$2:$A$3000)=6,IF(YEAR( PA!$A$2:$A$3000)=2007,IF(PA!$F$2:$F$3000="C", PA!$K$2:$K$3000))))

    or a little shorter....

    =MAX(IF(TEXT(PA!$A$2:$A$3000,"mmmyy")="Jun07",IF( PA!$F$2:$F$3000="C",PA!$K$2:$K$3000)))

  3. #3
    Registered User
    Join Date
    05-21-2007
    Posts
    72
    Cheers.

    Looking at the formula, I was putting a close bracket in the wrong place and thats why I couldnt get mine to work. I was close enough

    Thanks again

+ 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