+ Reply to Thread
Results 1 to 4 of 4

Find out what these numbers have in common

Hybrid View

morsoe Find out what these numbers... 07-27-2011, 05:41 AM
Cookstein2 Re: Find out what these... 07-27-2011, 06:34 AM
Cookstein2 Re: Find out what these... 07-27-2011, 06:48 AM
morsoe Re: Find out what these... 07-27-2011, 07:39 AM
  1. #1
    Registered User
    Join Date
    08-13-2009
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    20

    Find out what these numbers have in common

    I have a spreadsheet with only one column named product catergory (UNSPSC if someone is familiar with that).

    e.g. I have these 5 numbers for my 5 products:

    42121510
    42121510
    42121510
    42121511
    42121509

    I want to evaluate from left to right where the numbers match and end up with a result, that says 421215 which is what they have in common. I could also have 5 different categories starting with different number e.g. 42, 43, 10 or whatever.

    How to do it?
    Last edited by morsoe; 07-28-2011 at 03:34 AM.

  2. #2
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Re: Find out what these numbers have in common

    ok, i have had a look and cant figure it out yet. But something that may help is that you only need to compare the maximum and minimum values in your list of numbers

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Re: Find out what these numbers have in common

    I put your five numers in cells A1:A5

    And then this in your result cell

    =LEFT(MIN(A1:A5),MAX(IF(LEFT(MIN(A1:A5),{1,2,3,4,5,6,7,8})=LEFT(MAX(A1:A5),{1,2,3,4,5,6,7,8}),{1,2,3,4,5,6,7,8},{0,0,0,0,0,0,0,0})))
    confirm formula with ctrl+shift+enter

  4. #4
    Registered User
    Join Date
    08-13-2009
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Find out what these numbers have in common

    Thank you Cookstein2 - it solved my problem :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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