+ Reply to Thread
Results 1 to 3 of 3

Performing an Operation with Lists of Differing Length with Duplicate and Unique Values

  1. #1
    Registered User
    Join Date
    09-02-2015
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    8

    Performing an Operation with Lists of Differing Length with Duplicate and Unique Values

    --For the purpose of this example I will use the example of # of Red Cars and # of Blue Cars--

    In the A column: a list of a county and its respective state. (Example: Adams County, IL)
    In the B column: a count of the number of Red Cars (my data) in that county (Example: 3000)
    In the C column: a shorter list of counties (Column A contains all of the counties in Column C, but A has many additional counties since for the purpose of this example, the additional counties of Column A have no blue cars) and their respective state.
    In the D column: a count of the number of Blue cars in that county.

    Since Column A has additional counties, the counties do not line up, so I cannot perform a simple operation without doing something first. Also there are far too many values to do it manually. I would like to take the (Column B value associated with CountyX)/(Column D value associated with the same CountyX) and if there is not a Column D value to divide by (since there are more counties in column A) to be able easily separate those.

    Below is an example from the excel sheet:
    hC64Q8s.png

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Performing an Operation with Lists of Differing Length with Duplicate and Unique Value

    Put the following formula In cell E1 and copy down:
    =iferror(vlookup(A1,$A$1:$B$100,2,0)/vlookup(A1,$C$1:$D$100,2,0),"")
    Last edited by Craig K.; 09-02-2015 at 03:29 PM. Reason: Forgot the $ signs
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    09-02-2015
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    8

    Re: Performing an Operation with Lists of Differing Length with Duplicate and Unique Value

    Thank you so much!

+ 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] SumProduct of Unique values in a dynamic length column
    By ddander54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 05:24 PM
  2. Performing a mathematical function on data based on data ID and unique values
    By manderax in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2013, 04:52 PM
  3. Validation Lists - Multiple dependent lists with unique values
    By Lewigi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 06:42 AM
  4. LISTS! identifying unique values in multiple lists
    By pwall1115 in forum Excel General
    Replies: 3
    Last Post: 04-09-2013, 03:36 AM
  5. [SOLVED] LISTS! how to identify which values are unique in multiple lists
    By pwall1115 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2013, 10:43 PM
  6. counting unique values in a variable length column
    By saimike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2012, 10:58 AM
  7. Performing same operation on multiple text files
    By dficklin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2010, 11:31 PM
  8. [SOLVED] Duplicate and unique items in 2 lists
    By Vince in forum Excel General
    Replies: 0
    Last Post: 08-22-2006, 06:15 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