+ Reply to Thread
Results 1 to 6 of 6

Searching against multiple fields in a single row, populate new field in same row

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Question Searching against multiple fields in a single row, populate new field in same row

    I have two (2) different issues that I need help with. This is question #1 or part 1, of 2 parts:

    In the first scenario, I have three (3) columns of data: Originating, Terminating and one for the formula. I need to be able to search one (1) ROW at a time (not columns), and look for a specified value in EITHER A2 or B2. If the specified value does exist in one of those cells, I need to populate C2 (same row) with a value of "True" or blank. If the specified value does NOT exist in either A2 or B2, then I need C2 to be populated with "False"

    ex: I'm looking for 0066 in EITHER A2 or B2. It doesn't exist in either cell, so I'd like C2 to say "False"
    0066 does exist in A3, so I'd like C3 to either be blank or be populated with "True"
    0066 does exist in B3, so I'd like C3 to either be blank or be populated with "True"

    It is not uncommon for these particular spreadsheets to contain 60,000-70,000 rows of data, and numerous columns, so searching manually eats up man hours. What I've done in the past is a series of filters to get to the answer I need.

    Ultimately, I'm trying to get to a point where I can delete all the rows where column F is False.
    Attached Files Attached Files

  2. #2
    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,147

    Re: Searching against multiple fields in a single row, populate new field in same row

    Try

    =IF(AND(A2<>"0066",B2<>"0066"),"FALSE",IF(OR(A2="0066",B2="0066"),"TRUE",""))

  3. #3
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Re: Searching against multiple fields in a single row, populate new field in same row

    It is kind of a duplicate, but there is one additional condition to be met. .

  4. #4
    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,147

    Re: Searching against multiple fields in a single row, populate new field in same row

    Your other post ..

    =IF(A2=1,B2,C2)

  5. #5
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Re: Searching against multiple fields in a single row, populate new field in same row

    Ok, that part of it did work. . . how can I add the OR part of it. . .

    If A2 equals 1, then populate D2 with B2, BUT if A2 equals 2, then populate D2 with C2??

    There is where I get really lost. . .when I try to nest functions inside other functions.

  6. #6
    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,147

    Re: Searching against multiple fields in a single row, populate new field in same row

    If A2 equals 1, then populate D2 with B2, BUT if A2 equals 2, then populate D2 with C2??
    That is what the last formula does

    in D2

    =IF(A2=1,B2,C2)

+ 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: 03-09-2016, 06:39 AM
  2. Formula to create multiple address fields using data in single field
    By MrHo1956 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2015, 11:41 AM
  3. [SOLVED] Populate Field From Single Data Validation Selection
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-05-2013, 09:04 PM
  4. MACRO needed to auto populate fields if an X is placed in a specific field
    By dbasch89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2012, 04:03 PM
  5. Replies: 2
    Last Post: 02-27-2012, 09:16 PM
  6. Replies: 17
    Last Post: 02-24-2012, 03:59 PM
  7. Replies: 3
    Last Post: 08-11-2009, 09:45 AM

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