+ Reply to Thread
Results 1 to 6 of 6

Cut down formula?

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    5

    Cut down formula?

    Hi,

    I have a really long formula and I'm really not very good with Excel so I'm not even sure I totally understand it, but it works! The INDEX MATCH function returns a name, but then I added the ISERROR IF function because I was getting a lot of error messages when the value the match function wanted to match wasn't available and I wanted the cells to stay blank rather than display the error. This is it:

    =IF(ISERROR(INDEX(Points!$A$5:Points!$A$43, MATCH(1, Points!$AX$5:Points!$AX$43,0)))," ",INDEX(Points!$A$5:Points!$A$43, MATCH(1, Points!$AX$5:Points!$AX$43,0)))

    Is there anyway to shorten this? As you can see I've repeated the INDEX MATCH function twice, I'm sure there must eb a way to avoid doing this... If you need any extra info let me know

    Thanks in advance

    Lee
    Last edited by NewbieLee; 12-01-2012 at 05:01 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cut down formula?

    Hi,

    Perhaps

    =IF(ISERROR(INDEX(Points!$A$5:Points!$A$43, MATCH(1, Points!$AX$5:Points!$AX$43,0)))," ")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Cut down formula?

    Thanks for the reply but that only returns FALSE

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Cut down formula?

    if you really are using 2002/3, then im not sure there is anything you can do to shorten that formula.

    which part is causing the error msg? (use ths formula editor to check)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Cut down formula?

    In 2007 and later versions

    Please Login or Register  to view this content.
    Else you'll probably have to stuck with your original formula
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    England
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Cut down formula?

    Yes I have an older version and I think I'm just going to stick with the original one, it's not a problem but would just make it easier for me if I could shorten it! I think I've just about gotten my head round the original one anyway

    Thankyou for all your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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