+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25

Thread: IF with Index/Match

  1. #16
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    hi,

    I am having real problems with this as my range changed to columns H:BJ

    H is where the products are
    BJ is where the average is

    What parts of the forumla should I amend? (Sorry)

  2. #17
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: IF with Index/Match

    You just need to change all the $S to $BJ you can do it with Edit|Replace...
    =IFERROR(IF(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))<1,INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH("Average",Overview!$H$4:$BJ$4,0)),INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))),0)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #18
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    Hi,

    I have had to upload the sheet to show you.

    The average column isnt being picked up correctly. What is it?!?
    Attached Files Attached Files

  4. #19
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: IF with Index/Match

    What is wrong... Column BJ at row 5 (where the match occurs) is 35.77 as per the result in Q23?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #20
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    Sorry - that was me being stupid i think!! I just have to test it - ill report back the outcome asap

  6. #21
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    Hi,

    This formula works fine for me:
    =IFERROR(IF(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))<1,INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH("Average",Overview!$H$4:$BJ$4,0)),INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))),0)
    however - I have sent it to someone else who is not on 2007 and it doesnt work because of the IFERROR function

    Can anyone help in changing it to a formula that will work on older versions?

  7. #22
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,589

    Re: IF with Index/Match

    You might just manage this in 2003
    =IF(ISERROR(IF(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))<1,INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH("Average",Overview!$H$4:$BJ$4,0)),INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0)))),0,IF(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))<1,INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH("Average",Overview!$H$4:$BJ$4,0)),INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))))
    i.e.
    =IF(ISERROR("your formula"),"","your formula")
    rather than
    =IFERROR("your formula","")
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  8. #23
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: IF with Index/Match

    Try:

    =IF(ISNA(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))),0,IF(INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))<1,INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH("Average",Overview!$H$4:$BJ$4,0)),INDEX(Overview!$H$5:$BJ$174,MATCH($C23&Q$18&$D23&Q$19,Overview!$H$5:$H$174,0),MATCH($G$4,Overview!$H$3:$BJ$3,0))))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  9. #24
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    Thanks Marcol - it would be so much easier if everyone I worked with was on the same version of excel!

  10. #25
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel 2007
    Posts
    550

    Re: IF with Index/Match

    Thanks NBVC, if the otherone doesnt work Ill try yours. I am waiting to here from my colleague.

+ 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.2.0