+ Reply to Thread
Results 1 to 4 of 4

Help Flag Rows When Certain Parameters Met

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    Boston, Mass
    MS-Off Ver
    2010
    Posts
    2

    Help Flag Rows When Certain Parameters Met

    Grateful for any assistance regarding a dataset I'm working with.

    Task: Cleasing an item dictionary and need to highlight an item # that will become the master # for all sites going forward.

    Is there any formula that can flag whether the following parameters are true? Note, site a is the "default", site b would be "secondary default". Always looking at fields whenever they have the same v2key.
    1) Given same unique v2. If item # at site a = item # at site b, flag that row. This is one is a simple if and statement I think but this doesn't occur often.
    2) If item # at site a is different then b, then use the most common item # between all sites (a,b,c,d,e) for that particular v2key. So if one item # is at one site and 2/3/4/ sites has another same #, use the latter most common.
    3) If all item #'s are different, then use site A if stocked = (Y) since its the first default, or site b if site a is not stocked (N), and site b is stocked (Y)

    Below is a sample dataset, and given the above I would want rows 3,6,9,12,15,18 flagged (including column headers). Any suggestions on syntax or advice for what formulas to review in order to solve this problem? Thanks in advance!


    V2KEY ITEM NUMBER SITE STOCK
    62 4915112 b N
    62 4915112 a N
    62 4911001 c N
    62 4915112 c N
    209 2800002 b N
    209 2802906 d N
    209 2800002 c N
    223 3509125 d N
    223 5351270 a Y
    223 3509125 c Y
    251 2250027 a N
    251 2250039 e Y
    355 3503336 b Y
    355 3503336 a N
    355 3509764 c N
    435 3859272 b Y
    435 3859272 a Y
    435 3859272 b N
    435 3857806 c Y

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Help Flag Rows When Certain Parameters Met

    Take a look at Conditional Formatting
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Help Flag Rows When Certain Parameters Met

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-15-2015
    Location
    Boston, Mass
    MS-Off Ver
    2010
    Posts
    2

    Re: Help Flag Rows When Certain Parameters Met

    Hi! Please see attached test dummy file
    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. [SOLVED] Delete rows with missing data flag
    By SaraLynne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2014, 11:51 AM
  2. Delete Rows Outside of Time Parameters
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2013, 08:55 AM
  3. [SOLVED] SUMIFS and multiple parameters across rows and columns
    By george_k in forum Excel General
    Replies: 4
    Last Post: 11-02-2012, 02:56 PM
  4. [SOLVED] Collecting rows across many sheets within date parameters
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-30-2012, 04:39 PM
  5. Flag rows that hasnt been updated in a while?
    By omnisin in forum Excel General
    Replies: 1
    Last Post: 10-14-2009, 09:05 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