+ Reply to Thread
Results 1 to 5 of 5

Skip "False" in IF and continue numbering in cell until True match, then move down cell

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    London, England
    MS-Off Ver
    365 ProPlus
    Posts
    20

    Skip "False" in IF and continue numbering in cell until True match, then move down cell

    I'm not sure if this is achievable, but hopefully so.

    I'm using two IF's in one formula (lets say in A1) that is searching through a range of data on another worksheet. If both conditions are met, it returns an email address, and FALSE if False.

    Basically, I'd like the formula to skip the false and only fill trues, meaning that when I auto filled from A1 I would have a nice column full of email addresses.

    At the minute it just looks like a column full of Falses mixed with the odd email addresses.

    I know I can filter out the falses, but I would like to make a macro on this one.

    Any help (or indication that it can't be done) would be grand!

    Thanks all,

    Si

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Skip "False" in IF and continue numbering in cell until True match, then move down cel

    Where the FALSE result would be put two double quotes to return a NULL response instead of false.

    =IF(A1<>A1, TRUE, "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Skip "False" in IF and continue numbering in cell until True match, then move down cel

    There's a number of possibilities,
    1. a key column on your data page that is set to your search and then an INDEX/MATCH function to pull data
    2. an arrayed function using INDEX/MATCH/SMALL to pull only the appropriate values
    3. A double INDEX'ed Function to remove the necessity to use an ARRAY

    It would require a sample workbook from you (go advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    09-18-2014
    Location
    London, England
    MS-Off Ver
    365 ProPlus
    Posts
    20

    Re: Skip "False" in IF and continue numbering in cell until True match, then move down cel

    Excel test - remove rows not in use (appear as false).xlsxExcel test - remove rows not in use (appear as false).xlsx

    Okay, I think this is attached. I've changed the data, but the principle is still the same.

    I've heard indexing would work for this, but I don't properly understand how to use it.

    NOTE: you can see in column A that I've used a concatenate formula. This is because I want to contact all people who have listed an interest in (let's say... 4) as either an "Interest 1" or "Interest 2"


    Also, you can see I've added a sort of search box in column B2. I'm using this as a reference as I think i'd like to macro this for other people to use, eventually.

    Happy to hear suggestions on better ways to do this if you come across one

    Thanks guys!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Skip "False" in IF and continue numbering in cell until True match, then move down cel

    In I6 copied down
    =IF(OR(F6=$N$2,G6=$N$2),$N$2&"_"&COUNTIF($F$6:$G6,$N$2),"")
    you can hide column I if you like

    In M6 copied down
    =IF(OR(F6=$N$2,G6=$N$2),$N$2&"_"&COUNTIF($F$6:$G6,$N$2),"")
    Does that work for you?
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 12-18-2013, 02:12 PM
  2. [SOLVED] Conditional Formatting a cell from a "true/false" VLOOKUP
    By Solidstan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-12-2013, 10:54 AM
  3. [SOLVED] Test for blank cell should be "True" but "False" action is taken.
    By Aceso in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-09-2013, 05:47 PM
  4. Replies: 8
    Last Post: 01-20-2013, 04:21 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

Tags for this Thread

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