+ Reply to Thread
Results 1 to 5 of 5

Array Formula Issue - Need Help

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2013
    Posts
    11

    Array Formula Issue - Need Help

    Can somebody tell me why this array formula is doing this?

    I have a table with Prices in one column and Dates in another:

    =SUM($G$2:$G$511*(MONTH($H$2:$H$511)=11))

    That formula sums November perfectly, but when I do this for December:

    =SUM($G$2:$G$511*(MONTH($H$2:$H$511)=12))

    For some reason, it's summing every price in column G and not just the ones for December.

    I have no idea why this is happening. All I did was change the month portion of the formula for each month and every other month is working except for December.

    Any idea?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Array Formula Issue - Need Help

    Hard to say without seeing the data.
    Can you attach a sample workbook?

    Did you enter the formula as an array ?

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Array Formula Issue - Need Help

    Do you get a different result with this formula:

    =SUMPRODUCT(--(MONTH(H2:H511)=11),G2:G511)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-07-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula Issue - Need Help

    Quote Originally Posted by Tony Valko View Post
    Do you get a different result with this formula:

    =SUMPRODUCT(--(MONTH(H2:H511)=11),G2:G511)
    Amazingly enough....this gives me the same scenario..works for Months January-November, but not December. I do have my formula as an array.

    All my sheet contains are prices in one column and dates in another column. Like maybe 5-10 dates for each month.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Array Formula Issue - Need Help

    OK, we'll need to see the file or a SMALL sample file that reproduces the problem.

    It does sound rather odd!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Array Formula Issue
    By FWM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2015, 08:57 AM
  2. [SOLVED] Issue with formula array
    By purlo in forum Excel General
    Replies: 9
    Last Post: 06-08-2015, 03:26 PM
  3. SUM ARRAY Formula Issue - Probably an easy one...
    By huntethic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2015, 12:27 PM
  4. Advanced Excel- Array formula issue
    By PatCell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2015, 09:02 PM
  5. Array formula issue
    By dushtin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2013, 11:53 AM
  6. Array / Concatenate formula issue
    By Ozwilly in forum Excel General
    Replies: 6
    Last Post: 10-27-2011, 04:41 AM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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