+ Reply to Thread
Results 1 to 5 of 5

Correct Syntax

  1. #1
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Correct Syntax

    =IF(ISERROR(MATCH($B3, "'" & $O$1 & "'"!$D$11:$D$108,0)), 1,0)

    I'm trying to use the above to match B3 in the Worksheet that's listed in Cell O1, in the range D11:D108. What am i doing wrong ?

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,919

    Re: Correct Syntax

    Try this:

    =IF(ISERROR(MATCH($B3,INDIRECT( "'" & $O$1 & "'!$D$11:$D$108"),0)), 1,0)

    Or:

    =--(ISERROR(MATCH($B3,INDIRECT( "'" & $O$1 & "'!$D$11:$D$108"),0)))

  3. #3
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Correct Syntax

    Thanks for your help, it worked perfectly. Complete noob here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,397

    Re: Correct Syntax

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Correct Syntax

    Done, apologies, forgot.

+ 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. Correct syntax using IF and AND
    By Illona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2014, 06:40 PM
  2. What is the correct syntax?
    By LLL0422 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2014, 06:21 PM
  3. Help getting my syntax correct
    By MMS6300 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 02-20-2009, 02:26 PM
  4. looking for correct syntax
    By adsxvii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2009, 01:40 PM
  5. Correct syntax
    By Paragons in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2007, 07:48 AM
  6. Correct VBA syntax
    By Ken G. in forum Excel General
    Replies: 3
    Last Post: 12-06-2005, 08:40 PM
  7. [SOLVED] If...and... - can never get the syntax correct!
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-24-2005, 01:06 PM

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