+ Reply to Thread
Results 1 to 7 of 7

IF formula based on values in range, returning the title of range

  1. #1
    Registered User
    Join Date
    04-21-2020
    Location
    Finland
    MS-Off Ver
    Office365, Mac
    Posts
    17

    IF formula based on values in range, returning the title of range

    Hi,

    tried to search a solution for quite simple scenario, where IF formula should look in values in defined area/name/range and if match found, formula would return area title as value. see attached sample of excel

    Screenshot 2021-10-04 at 10.16.34.png
    Attached Files Attached Files

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,705

    Re: IF formula based on values in range, returning the title of range

    Your 'larger than 0' in the lookup table is going to be problematic. How many other possible values could there be in the YES and NO columns? Or is this the extent of the issue?

    I have a horrible feeling that you are showing us only the tip of the iceberg, and that many twists and turns are to follow, leading to massively shifting goalposts.

    In order not to cause massive frustration for your helpers (potentially!), please tell us the whole story up front. Thanks.
    Last edited by AliGW; 10-04-2021 at 03:36 AM.
    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
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: IF formula based on values in range, returning the title of range

    Based on the limited sample (as per Ali's response)

    =IFERROR(IF(MATCH(F8,INSCOPE,1),$C$6),$D$6)

    For ">0" add small number (e.g 0.0001) in your table
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    04-21-2020
    Location
    Finland
    MS-Off Ver
    Office365, Mac
    Posts
    17

    Re: IF formula based on values in range, returning the title of range

    Hi,

    apologies for not being clear and as you mentioned, I should have defined in more details the other possible values.

    The possible values on Yes column: any number higher than 0, "Yes" and other different text values (=words)
    The possible values on No column: 0 and "No" and other different text values (=words)

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: IF formula based on values in range, returning the title of range

    So does offering in post #3 work for you?

  6. #6
    Registered User
    Join Date
    04-21-2020
    Location
    Finland
    MS-Off Ver
    Office365, Mac
    Posts
    17

    Re: IF formula based on values in range, returning the title of range

    Hi John,

    that seems to be working solution, thanks for helping me out.

  7. #7
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,705

    Re: IF formula based on values in range, returning the title of range

    Thanks for marking this thread as SOLVED.

    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 all those who offered 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. [SOLVED] Formula to create a month range based on whether or not values are present in a range
    By MSCHICK1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-21-2019, 10:10 AM
  2. [SOLVED] Set range and title pdf based on cell values
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2016, 04:02 PM
  3. Returning Value based on specific values in a cell range
    By mgallacher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2015, 11:30 AM
  4. Formula for returning only positive values from a range
    By Novosedoff in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-28-2014, 05:08 PM
  5. Vlookup Returning Values based on Date Range
    By kgibson20 in forum Excel General
    Replies: 5
    Last Post: 06-28-2012, 09:13 AM
  6. Replies: 0
    Last Post: 02-22-2011, 01:56 PM
  7. chart title based on Named Range
    By Hammer_757 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-05-2009, 07:34 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