+ Reply to Thread
Results 1 to 6 of 6

IF statement troubleshooting

  1. #1
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    IF statement troubleshooting

    I have the following IF statement {=IF($R$11:$R$119=$Q2,$K$11:$K$119,1)}

    that I would like to use to find the date in column K that corresponds with the match of Q2 in the R11:R119 range.

    There may be / are multiple dates that match, I would like to isolate the latest / newest date if possible.

    As the formula is now, I get a return of 1/1/1900 except for one and that is 6-24-2011, is this caused by the multiple matches?

    Thanks in advance.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: IF statement troubleshooting

    MARKSTRO,

    Why are you using an IF() function for this, and an array formula to boot?? This would be best accomplished with an Index/Match:
    Please Login or Register  to view this content.
    Note that that is a regular formula, no array formula necessary
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Re: IF statement troubleshooting

    Awesome!!! I can see many more uses for this. I was attempting to modify a sumif statement to get what I wanted. My next level in Excel is to learn when to use Index, Match, and others. Thanks so much.

  4. #4
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Re: IF statement troubleshooting

    Can you suggest a good source to learn arrays vs. regular formulas etc.

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF statement troubleshooting

    Always try looking for a non-array solution first, since in most cases it would be less resource intensive (faster calculation).

    A good read on array formulas can be found here
    http://www.cpearson.com/excel/arrayformulas.aspx
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Re: IF statement troubleshooting

    Thanks, on the learning curve now for sure.

+ 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