+ Reply to Thread
Results 1 to 9 of 9

Alternative for #N/A in an offset and match formula?

  1. #1
    Registered User
    Join Date
    03-16-2011
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2003
    Posts
    5

    Alternative for #N/A in an offset and match formula?

    Hi guys,

    When no data can be returned in the below formula i get a nasty looking #N/A, is there a way of getting a blank instead or something else? I'd like to keep the formula the same apart from that addition.

    =OFFSET('Broker Received'!$A$1,MATCH($I$9,'Broker Received'!$B:$B,0)-1,MATCH(DATE($S$9,$P$9,"01"),'Broker Received'!$4:$4,0)-1,1,1)

    Thanks guys

    Carl

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Alternative for #N/A in an offset and match formula?

    =IFERROR(OFFSET('Broker Received'!$A$1,MATCH($I$9,'Broker Received'!$B:$B,0)-1,MATCH(DATE($S$9,$P$9,"01"),'Broker Received'!$4:$4,0)-1,1,1),"")
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    03-16-2011
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative for #N/A in an offset and match formula?

    Quote Originally Posted by Blake 7 View Post
    =IFERROR(OFFSET('Broker Received'!$A$1,MATCH($I$9,'Broker Received'!$B:$B,0)-1,MATCH(DATE($S$9,$P$9,"01"),'Broker Received'!$4:$4,0)-1,1,1),"")
    Doh..simple as that! Thanks mate..my brain is fried today.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Alternative for #N/A in an offset and match formula?

    FWIW you could avoid Volatile OFFSET with INDEX if preferred:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-16-2011
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative for #N/A in an offset and match formula?

    Cheers for the very quick replies..excellent

  6. #6
    Registered User
    Join Date
    03-16-2011
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative for #N/A in an offset and match formula?

    I'm getting a #NAME? for some reason. The formula looks at a drop down list, which the user would select the broker and the data would be returned. Any ideas why that's happening?

    Cheers

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Alternative for #N/A in an offset and match formula?

    If you're using XL2003 then IFERROR is not available to you (new to XL2007)

    Can you advise the data type of the value being returned - is it always a text string, a number of mix thereof ?

    If it's consistent you can avoid double evaluation via a LOOKUP construct else you will need to double evaluate via ISNA test on the MATCH elements.

    Let us know... incidentally if number can you confirm if 0 is ever a valid result ?

  8. #8
    Registered User
    Join Date
    03-16-2011
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative for #N/A in an offset and match formula?

    Hi,

    Yeah it's 2003. The data returning is a mix of numbers (financial, percentages and standard numeric). I'm using the formula on a series of cells, it's matching names of brokers and returning the info from other workbooks.

    Thanks

    Carl

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Alternative for #N/A in an offset and match formula?

    You didn't stipulate if 0 was valid or not ... perhaps safest to use:

    Please Login or Register  to view this content.
    If 0 isn't valid you might consider reverting to SUMIF or using a LOOKUP construct.

+ 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