+ Reply to Thread
Results 1 to 13 of 13

Iferror, index & match

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Iferror, index & match

    Hi I am new to this forum so apologies if I am not posting in the right way.
    I am trying to setup an formula to look for an invoice number across 10 bank transaction sheets (different currencies) and return the amount paid.
    The formula needs to search the first currency sheet e.g. gbp, then the next e.g usd etc etc and return the amount paid if it finds the invoice number.

    The IFERROR works referring to 2 sheets but I am having trouble adding any more sheets to it. $A$3:$F$10 is the range on each bank sheet to search

    =IFERROR(INDEX(usd!$A$3:$F$10,MATCH(B3,INDEX(usd!$A$3:$F$10,0,4),0),5),INDEX(eur!$A$3:$F$10,MATCH(B3,INDEX(eur!$A$3:$F$10,0,4),0),5))

    I have tried adding ,IFERROR (obviously changing the sheet refs) and &IFERROR as well but it keeps saying error or too many arguments.

    =IFERROR(INDEX(usd!$A$3:$F$10,MATCH(B3,INDEX(usd!$A$3:$F$10,0,4),0),5),INDEX(eur!$A$3:$F$10,MATCH(B3,INDEX(eur!$A$3:$F$10,0,4),0),5)),IFERROR(INDEX(aud!$A$3:$F$10,MATCH(B3,INDEX(aud!$A$3:$F$10,0,4),0),5),INDEX(nzd!$A$3:$F$10,MATCH(B3,INDEX(nzd!$A$3:$F$10,0,4),0),5))

    This is probably really simple but any help is much appreciated.

    Many thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Iferror, index & match

    i take it its looking in the same columns of all sheets?
    so just for starters this bit
    INDEX(usd!$A$3:$F$10,MATCH(B3,INDEX(usd!$A$3:$F$10,0,4),0),5)
    should just be

    INDEX(usd!$E$3:$E$10,MATCH(B3,Usd!$D$3:$D$10,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Iferror, index & match

    Hi many thanks that does make it simpler and have amended but I still can't add other sheets to the formula as IFERROR only has 2 arguments and I can't seem to add another IFERROR, not sure what I am doing wrong

    =IFERROR(INDEX(usd!$D$3:$D$10,MATCH(B3,usd!$E$3:$E$10,0)),INDEX(eur!$E$3:$E$10,MATCH(B3,eur!$D$3:$D$10,0)))&IFERROR(INDEX(gbp!$D$3:$D$10,MATCH(B3,gbp!$E$3:$E$10,0)),INDEX(aud!$E$3:$E$10,MATCH(B3,aud!$D$3:$D$10,0)))

    Many thanks

  4. #4
    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
    44,063

    Re: Iferror, index & match

    Could you please post an Excel sheet, minus any confidential information? I can't get my head round your formula....
    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

  5. #5
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Iferror, index & match

    Sorry error in ranges in previous posted formula, correct one below - nevertheless still not working so any help, many thanks
    I am entering as an array as well in case that is the problem.

    IFERROR(INDEX(usd!$D$3:$D$10,MATCH(B3,usd!$E$3:$E$10,0)),INDEX(eur!$d$3:$d$10,MATCH(B3,eur!$e$3:$e$10,0)))&IFERROR(INDEX(gbp!$D$3:$D$10,MATCH(B3,gbp!$E$3:$E$10,0)),INDEX(aud!$d$3:$d$10,MATCH(B3,aud!$e$3:$e$10,0)))

    Thanks

  6. #6
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Iferror, index & match

    Hi Glenn

    Please see attached

    Many thanks
    Harriet
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Iferror, index & match

    add iferrors together like this
    =iferror(IFERROR(IFERROR(INDEX(USD!$E$3:$E$10,MATCH(B3,USD!$D$3:$D$10,0)),INDEX(eur!$E$3:$E$10,MATCH(B3,eur!$D$3:$D$10,0))),INDEX(gbp!$E$3:$E$10,MATCH(B3,gbp!$D$3:$D$10,0))),"not found")
    so another currency would be
    =IFERROR(IFERROR(IFERROR(INDEX(USD!$E$3:$E$10,MATCH(B3,USD!$D$3:$D$10,0)),INDEX(eur!$E$3:$E$10,MATCH(B3,eur!$D$3:$D$10,0))),INDEX(gbp!$E$3:$E$10,MATCH(B3,gbp!$D$3:$D$10,0))),INDEX(another!$E$3:$E$10,MATCH(B3,another!$D$3:$D$10,0)))

    if you want a return when not matched
    =IFERROR(IFERROR(IFERROR(IFERROR(INDEX(USD!$E$3:$E$10,MATCH(B3,USD!$D$3:$D$10,0)),INDEX(eur!$E$3:$E$10,MATCH(B3,eur!$D$3:$D$10,0))),INDEX(gbp!$E$3:$E$10,MATCH(B3,gbp!$D$3:$D$10,0))),INDEX(another!$E$3:$E$10,MATCH(B3,another!$D$3:$D$10,0))),"not found")

  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
    44,063

    Re: Iferror, index & match

    Accidental duplicate of an earlier post in this thread...
    Last edited by Glenn Kennedy; 07-26-2014 at 08:16 AM.

  9. #9
    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
    44,063

    Re: Iferror, index & match

    Is it possible to add an additional column to shhet 2 - with the currency of the invoice? That might then be used to target the index:match to the right sheet

  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
    44,063

    Re: Iferror, index & match

    How is this? If there is more that you need, please let me know.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 07-26-2014 at 08:17 AM.

  11. #11
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Iferror, index & match

    Hi Glenn

    Made spreadsheet a bit clearer, see attached
    Many thanks
    Attached Files Attached Files

  12. #12
    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
    44,063

    Re: Iferror, index & match

    OK. Try this out.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-25-2014
    Location
    Gloucestershire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Iferror, index & match

    Hi Glenn unfortunately I couldn't open your uploaded spreadsheet but I have used the formula that Martin kindly provided and it has worked - thank you so much to both of you for your help.

+ 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. Index, Match, Iferror and lots of problems
    By Sherp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2014, 12:00 AM
  2. Help to simplify an =IF(IFERROR(INDEX(...,MATCH( formula
    By sa12345 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 03:40 AM
  3. nested iferror index match for 10k rows
    By bruno08102013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 12:46 PM
  4. Adding IFERROR to INDEX MATCH
    By brad999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-06-2013, 04:18 AM
  5. Looking for better formula of iferror, index and match
    By DavidRoger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2012, 07:50 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