+ Reply to Thread
Results 1 to 10 of 10

Standard Index formula to replace array?

  1. #1
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Standard Index formula to replace array?

    Dear Forum.
    I’m able to produce the result I’d be looking for via an array formula that I was using for a different use (dragged down for multiple returns - thank you again benishiryo!), but I think for this new different need, since I’d only be looking for a single result I’d imagine there would be a nicer way of doing it with a regular INDEX formula or something (if I can eliminate unnecessary array formula that would be great as I also have quite a few array formulas for other uses in the workbook). While the sample workbook only has a single cell that would need said formula in the real world workbook there could be hundreds so if I can do without using array formula that would be great.
    In the sample workbook I have my array formula that I’m looking to replace in Cell F18.
    Would appreciate any insight!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Standard Index formula to replace array?

    Try this in F18:

    =INDEX($K$7:$K$11,MATCH("X",OFFSET($K$7:$K$11,0,F17),0))

    If the numbers get changed to words, use this instead:

    =INDEX($K$7:$K$11,MATCH("X",OFFSET($K$7:$K$11,0,MATCH(F17,$L$6:$X$6,0)),0))
    Last edited by AliGW; 03-13-2018 at 02:07 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Standard Index formula to replace array?

    Thank you very much for your response!
    You would think with such a nice short formula I couldn't mess it up, but maybe I have . it works fine in the sample workbook but not in the real world workbook. I have a feeling it is due to my layout being slightly different. (I may have over simplified). Can you please see screen shot of actual workbook where I'm trying your formula in DU161. Can you see how why it's not working for me?
    Thank you again for your help.
    Attached Images Attached Images

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Standard Index formula to replace array?

    Attach a more realistic sample workbook - I cannot work with a screenshot. Over simplifying is never a good idea.

  5. #5
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Standard Index formula to replace array?

    Please see attached. Thank you.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Standard Index formula to replace array?

    I'm not sure about this, as there is no explanation about the second data set beyond column AW.

    =INDEX($J$18:$J$24,MATCH("X",INDEX($O$18:$AQ$24,,MATCH($J$7,$O$17:$AQ$17,0)),0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Standard Index formula to replace array?

    That worked perfect Glen!! Thank you very much!! I'll owe you a Tanora

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Standard Index formula to replace array?

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  9. #9
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Standard Index formula to replace array?

    Ah! The "Thread Tools" method of marking of solved works so I have now been able to also mark my other two recent posts as solved as well as this. Previously I was doing it via the "Prefix" method by editing the original post but that wasn't working for me these last couple of day. (Another problem you solved Glenn. Thanks again!!

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Standard Index formula to replace array?

    Woo Hoo. two for the price of one....

+ 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. Using an Array formula within a standard one
    By pjwhitfield in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2017, 12:50 PM
  2. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  3. [SOLVED] Array standard deviaton formula
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-19-2015, 01:54 PM
  4. [SOLVED] index match array formula - replace cell references with ranges
    By nigelog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-17-2014, 10:39 AM
  5. [SOLVED] Replace ARRAY formula with VBA code
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2014, 08:29 AM
  6. [SOLVED] Formula to replace this array
    By cboys00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2012, 08:47 PM
  7. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 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