Results 1 to 3 of 3

Assigning certain data a value based on whole data

Threaded View

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Elgin
    MS-Off Ver
    Excel 2013
    Posts
    52

    Assigning certain data a value based on whole data

    Sorry for confusing title, I don't really know how to describe this.

    Anyhow, I've gotten a lot of help on this site, but I'm still pretty new to coding. I have the ideas I want, but I don't know how to execute them. Hoping to learn more today!

    Uploading my worksheet. Column A and Column B can have varying data and ranges, but will always be the two columns with the data I need to use in it. I would like the output to end up in column C. I gave an example of what a finished project would look like in column D.

    So I want a couple things to happen.

    First - Scan the values in row 1 column A. Look for matching values in all of column B.
    If there is a matching value, print a "1" in the cell next to the matched B value. (Column C). Do this for all matching values in row 1.
    Proceed to the next row. Scan values in A, look for matching values in B.
    If you had matching values in row 1, print a "2" in the cell next to the matched B value.
    If you did not have matching values in row 1, print a "1" in the cell next to the matched B value.

    Repeat this until you have gone through every row in Column A. The next step would have a "3" if both previous rows had matching data. It would continue to count up until you reached the last row.

    Second - Scan all values in column B. For all values that don't have a matching value in column A, print out a "222" in the cell next the B value into column C.

    Finished!

    Sorry if this was confusing. I'll be around for any help and questions.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assigning data dynamically
    By JohnTopley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-30-2021, 10:46 AM
  2. Assigning data dynamically
    By JohnTopley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2015, 02:35 PM
  3. [SOLVED] Counting specific data and extracting that data by rearranging by assigning numbering
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2014, 07:11 AM
  4. Assigning Values from Fixed Data Set to Variable Data Set
    By Jaricketts in forum Excel General
    Replies: 4
    Last Post: 04-21-2010, 01:24 PM
  5. Automatically assigning data series
    By driffert in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2008, 09:24 AM
  6. Assigning Multiple Rankings to Data based on different columns
    By Mike610 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2008, 07:43 PM
  7. Replies: 2
    Last Post: 11-20-2007, 04:47 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