Results 1 to 7 of 7

Thread: Is it Possible to write a Match Formula with a Defined Name Range?
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    May 2007
    Posts
    580
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Is it Possible to write a Match Formula with a Defined Name Range?

    Was trying to write a match formula with a defined name range.
    =MATCH("Satisfactory",Yellow, 0)

    This gives an N/A error. Is it possible?

    Thanks.

  2. #2
    Board Regular James006's Avatar
    Join Date
    Apr 2009
    Posts
    3,358
    Post Thanks / Like
    Mentioned
    19 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    Hi,

    Your match formula is correct ...

    Just make sure ... your named range ' Yellow ' does include Satisfactory ...
    and make sure the spelling of Satisfactory is identical to the one located within ' Yellow '

    Hope this will help

  3. #3
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,731
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    Yes, the "#N/A" error usually means it is not finding any matches.
    Note that it needs to match exactly. Something as simple as an extra space on the end of "Satisfactory " will cause it NOT to match.
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  4. #4
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,062
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    Your named range needs to be a contiguous range, otherwise it won't work.
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  5. #5
    Board Regular
    Join Date
    May 2007
    Posts
    580
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    I was trying to write it to find any that match to give the count. Some of the fields I my defined search are not satisfactory. So, it gives an #na error.

  6. #6
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,062
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    Match does not give a count, it simply finds the first match.
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  7. #7
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    50,731
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: Is it Possible to write a Match Formula with a Defined Name Range?

    If you want a count, try:
    Code:
    =COUNTIF(Yellow,"Satisfactory")
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •