+ Reply to Thread
Results 1 to 4 of 4

=IFS error when adding second argument

  1. #1
    Registered User
    Join Date
    12-18-2017
    Location
    United States
    MS-Off Ver
    10
    Posts
    13

    =IFS error when adding second argument

    =IFS(HLOOKUP(P1, B1:V2, 2, 0)="TM", "TM - Total Managed",(HLOOKUP(P1, B1:V2, 2, 0)="BR", "BR - Broker" )

    Can anyone tell me why this doesn't work? If I remove the 2nd argument it works fine, however when I want to test for other values it gives me the, "Not trying to type a formula?" error.
    Last edited by zombiehairdu; 01-10-2020 at 10:05 AM. Reason: Solution Verified

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: =IFS error when adding second argument

    Could it be incorrect parenthesis (before the second HLOOKUP)? Try this:

    =IFS(HLOOKUP(P1, B1:V2, 2, 0)="TM", "TM - Total Managed",HLOOKUP(P1, B1:V2, 2, 0)="BR", "BR - Broker" )
    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.

  3. #3
    Registered User
    Join Date
    12-18-2017
    Location
    United States
    MS-Off Ver
    10
    Posts
    13

    Re: =IFS error when adding second argument

    ...

    Well I feel stupid, that is exactly what was wrong.

    Thank you.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: =IFS error when adding second argument

    No need - we've all been there, done that AND got the T-shirt!!!

+ 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. Adding a further argument to formula
    By Marvo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2016, 12:35 PM
  2. Run time error '5': Invalid procedure call or argument getting error
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2014, 04:48 AM
  3. When do you need to use a key argument when adding to a collection?
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 12:21 AM
  4. Adding multiple IF argument
    By Obermier in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 11:07 AM
  5. Replies: 3
    Last Post: 04-28-2010, 05:54 PM
  6. Macro Error: Compile error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2005, 05:15 PM
  7. [SOLVED] Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 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