+ Reply to Thread
Results 1 to 3 of 3

Creating a customer status flag based on multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    07-19-2022
    Location
    Tennessee, USA
    MS-Off Ver
    office 365
    Posts
    1

    Creating a customer status flag based on multiple columns

    Hello, and thanks for even just reading this post. I know this will be a crazy easy fix for someone but my brain has over thought it till I am questioning my own name.

    The second tab shows my Actual customer status for New or Rejuv as a Y or N

    I need on the first tab to create a customer status flag in columns b and c of 1 based on what their status is Y or N on the second tab. 1 if Y and 0 if N Then in column d in need it to put one only if b and c are flagged. So each row will only have a single flag of 1 fore New, Rejuv, or Existing.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Creating a customer status flag based on multiple columns

    Hello and welcome to the forum.

    Try this:

    B2 =IFERROR(IF(INDEX(Internal!B:B,MATCH($A2,Internal!$A:$A,0))="Y",1,IF(INDEX(Internal!B:B,MATCH($A2,Internal!$A:$A,0))="N",0)),"None")
    C2 =IFERROR(IF(INDEX(Internal!C:C,MATCH($A2,Internal!$A:$A,0))="Y",1,IF(INDEX(Internal!C:C,MATCH($A2,Internal!$A:$A,0))="N",0)),"None")
    D2 =COUNTIF(B2:C2,1)

    Drag all formulas down.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Creating a customer status flag based on multiple columns

    Alternatively, you can shorten the B2 and C2 formulas if it is acceptable to show 0 when the order number is not found in the 'Internal' list.

    That is,

    B2 =COUNTIFS(Internal!$A:$A,$A2,Internal!B:B,"Y")
    C2 =COUNTIFS(Internal!$A:$A,$A2,Internal!C:C,"Y")

+ 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. How to flag columns based off the result of a formula.
    By EXPEDITION123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2020, 07:31 PM
  2. Replies: 2
    Last Post: 08-20-2013, 08:36 AM
  3. Creating a customer database with multiple services
    By ShawnZebra in forum Excel General
    Replies: 5
    Last Post: 03-08-2013, 03:05 PM
  4. arrange data to show different billing status and customer status
    By applesandpears in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-29-2012, 05:57 PM
  5. sorting a list of customer invoices from columns into rows / customer
    By jr1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2011, 07:04 AM
  6. flag 2-3 smallest numbers based on 2 columns
    By alizok in forum Excel General
    Replies: 7
    Last Post: 03-13-2008, 01:06 PM
  7. Creating a Flag based on cell value
    By Dan G. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2006, 03:50 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