+ Reply to Thread
Results 1 to 16 of 16

Max loss by month

Hybrid View

  1. #1
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: How to get max loss by month

    The issue is the numbers under column J. Since the Match is looking up the last value in J and that's on a lower row than the last value in B, you get differing data ranges. You have three options:
    1. Move the data under J somewhere else.
    2. Adjust the ranges manually.
    3. Change the last Match to read off B:B instead of J:J. Note that any data put under B might then throw off your calculations or result in an error, depending on what was in that data and the corresponding value in J.

    I don't see any change to your conditional formatting. It's working for me.

    I didn't bother checking the first time whether your data was from formulas or not. For J, since it is a formula, adding 0 or multiplying by 1 makes no difference, since any formula will try to coerce a number stored as text into a number. For the dates, it might have made a difference, but if this is your real spreadsheet, it appears Excel is reading those correctly as numbers.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

  2. #2
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: How to get max loss by month

    alright!!! It works! I used method 3!. Thanks!! :-)

  3. #3
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question Re: Max loss by month

    Hi,

    I'm not sure if I should open a new thread or not. It's a follow up here. The old excel that I am using, when saving in excel, it says there is incompatibility issue with the cell that contains

    =MIN((MONTH(Main!B5:INDEX(Main!B:B,MATCH(99^99,Main!B:B)))=MONTH(1&C1))*Main!J5:INDEX(Main!J:J,MATCH(99^99,Main!J:J)))

    The message given is

    "Some array formulas in this workbook refer to an entire column. In earlier versions of Excel, these formulas may be converted to #NUM! errors when they are recalculated."

    How should I change it to make it compatible?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Max loss by month

    I suspect that formula will be ok... here the entire column ref. is used to create a range and that element should function without issue.
    (note the *may* in the warning - if in doubt test)

    However, what I would say is the formula is a little odd - unless all the Months match the criteria the result would always be 0 (assuming J > 0 - not checked)

    You might find you actually want to use:

    =MIN(IF(MONTH(Main!B5:INDEX(Main!B:B,MATCH(99^99,Main!B:B)))=MONTH(1&C1),Main!J5:INDEX(Main!J:J,MATCH(99^99,Main!B:B)))
    confirmed with CTRL + SHIFT + ENTER
    note I also reverted the final match range to B so as to ensure both ranges share the same dimensions irrespective of content in J [edit: this is a point made by darkyam in an earlier post]
    Last edited by DonkeyOte; 01-07-2011 at 05:01 AM.

  5. #5
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: Max loss by month

    Hi,

    Thanks. It's working now :-0

  6. #6
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: Max loss by month

    oh sorry. I haven't save. the zero was solved but the compatibility error still occurs in excel 2007. Attached is my error report.
    Attached Files Attached Files

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Max loss by month

    @Lewis Koh - repeating a point made in an earlier post:

    Quote Originally Posted by D.O
    I suspect that formula will be ok... here the entire column ref. is used to create a range and that element should function without issue.
    (note the *may* in the warning - if in doubt test)
    I draw your attention to the word "may".

    Does Feb!E5 work ? Yes.

  8. #8
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: Max loss by month

    Hi, yes FebE5 works. I understood the "may". So the compat error is inevitable?

+ 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