+ Reply to Thread
Results 1 to 13 of 13

Serial Number Error in Array Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Serial Number Error in Array Formula

    Hi

    I have a worksheet which records staff, their work and the date it was completed. I also have a column on the sheet which displays the month of the relevant date entered. I have used an array formula to calculate how much of each work type was completed during a certain month however, as the month is displayed as a serial number as oppose to text, the array formula will not display the correct information.

    Is it possible to calculate this desired information based on the current structure of the worksheet. Attached is an example of the worksheet.

    Test Sheet 1.xls

    Thanks

    Scott

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    rather then formatting the date as mmmm try to put this in the D column

    =TEXT(C3,"mmmm")
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Serial Number Error in Array Formula

    Thanks very much

    Scott

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Serial Number Error in Array Formula

    Perhaps
    =IF($F$3="","",SUMPRODUCT(($A$3:$A$18=$F$3)*($B$3:$B$18=$F6)*(TEXT($D$3:$D$18,"mmmm")=H$4)))
    entered in H6

    Pull across and down as needed

    A Pivot Table would also do the trick
    Last edited by Pepe Le Mokko; 11-12-2012 at 05:13 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    i didnt see pepe's response but that is basicly putting them together

    (although you dont need column D ou can just do it with C)

    =SUMPRODUCT((--($A$3:$A$18=$F$3)*--($B$3:$B$18=$F8)*--(TEXT($C$3:$C$18,"mmmm")=H$4)))

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    also insead of your array you could use sumproduct like this

    =SUMPRODUCT((--($A$3:$A$18=$F$3)*--($B$3:$B$18=$F8)*--($D$3:$D$18=H$4)))

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Serial Number Error in Array Formula

    In fact, SUMPRODUCT, IS an Array formula.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    lol true it is but it doesn't need to be entered as an array formula to work

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    lol true it is but it doesn't need to be entered as an array formula to work

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Serial Number Error in Array Formula

    @ twiggywales.

    True. But why 2 posts for this?

  11. #11
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    because my computer hates me, hahaha this it didnt post then suddenly after the second if showed 2

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Serial Number Error in Array Formula

    Hmmm. This is not good. Ask for this to explain why does hates you and try to create a nice ralation with it!!

  13. #13
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Serial Number Error in Array Formula

    I tried but its giving me the silent treatment

+ 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