+ Reply to Thread
Results 1 to 17 of 17

Help with a formula for data in two spreadsheets

  1. #1
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Help with a formula for data in two spreadsheets

    Im sure there is a very basic formula for this but I am a novice and do not know how to do it. I have a spreadsheet with two sheets in it. Sheet 1 has 1 column with a list of alpha-numeric characters in it. Sheet 2 also has 1 column with alpha numeric characters in it. Sheet 2 has some of the same numbers in it as sheet 1 and then some unique ones. I would like to pull out the unique numbers from sheet 2. Does that make sense? Any help would be greatly appreciated

    Ex

    Sheet 1

    Column a
    b321
    c00576
    b4356
    b7895
    c7799

    sheet 2

    Column a
    b321
    c00576
    a5678
    b4356
    b7895
    b9999
    c7799


    I need something to pull out the unique numbers from sheet 2 such as a5678 and b9999

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,462

    Re: Help with a formula for data in two spreadsheets

    Have a look at http://www.get-digital-help.com/2009...m-two-columns/

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Tell use exactly where the formula is to be entered. Do you want the results listed vertically (down a column) or horizontally (across a row)?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    I would love it if the results would be in column 2 on sheet 2 vertically

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Try this...

    Sheet1
    A
    1
    Data
    2
    b321
    3
    c00576
    4
    b4356
    5
    b7895
    6
    c7799


    Sheet2
    A
    B
    1
    Data
    Uniques
    2
    b321
    a5678
    3
    c00576
    b9999
    4
    a5678
    5
    b4356
    6
    b7895
    7
    b9999
    8
    c7799


    This array formula** entered in B2 on Sheet2:

    =IFERROR(INDEX(A:A,SMALL(IF(ISNA(MATCH(A$2:A$8,Sheet1!A$2:A$6,0)),ROW(A$2:A$8)),ROWS(B$2:B2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

  6. #6
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    Ok thanks. It appears to work for the first few lines and then stops. I entered the array in B2 on sheet 2 and press enter. The cell then populates. I then click the arrow on the lower right corner of the box for it to run through the rest of the sheet and it only comes back with 8 uniques at the top of column b on sheet 2. What might I be doing wrong?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Not sure. I would have to see the file.

    How many uniques do you expect?

  8. #8
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    The larger sheet has over 2400 items on it. I expect a few hundred results. How could I send you the file?

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Make a copy of the file but remove all the data except for what's relevant to this problem then post the file in a reply.

  10. #10
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    Thank you so much for responding. Is there any way to email or pm it to you? I would rather not put it out there for the world to see

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Quote Originally Posted by teriscibetta View Post
    Is there any way to email or pm it to you?
    Well, I prefer to keep those aspects of my online identity private.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with a formula for data in two spreadsheets

    Try modifying the formula given by Tony to include the whole of the ranges being compared. The areas marked in Red are what I am referring to.

    =IFERROR(INDEX(A:A,SMALL(IF(ISNA(MATCH(A$2:A$8,Sheet1!A$2:A$6,0)),ROW(A$2:A$8)),ROWS(B$2:B2))),"")
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  13. #13
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    That seems to do the same thing. It only populates the first six lines. I have attached a screen shot

    uniques.jpg

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with a formula for data in two spreadsheets

    I see that you have not made any adjustment to the ranges in the formula like I suggested therefore the formula is processing only a small amount of the data.

  15. #15
    Registered User
    Join Date
    05-25-2015
    Location
    NJ
    MS-Off Ver
    office 2013
    Posts
    16

    Re: Help with a formula for data in two spreadsheets

    I am so sorry for my confusion. I really do not know much about excel except for very basic formulas. Can you tell me what the formula should read exactly? Im not sure what to change

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with a formula for data in two spreadsheets

    In B2 try changing the formula to this and enter with Ctrl + Shift + Enter

    =IFERROR(INDEX(A:A,SMALL(IF(ISNA(MATCH(A$2:A$2500,Sheet1!A$2:A$2500,0)),ROW(A$2:A$2500)),ROWS(B$2:B2))),"")

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with a formula for data in two spreadsheets

    Quote Originally Posted by teriscibetta View Post
    I am so sorry for my confusion. I really do not know much about excel except for very basic formulas. Can you tell me what the formula should read exactly? Im not sure what to change
    Tell us the EXACT range addresses of your data.

+ 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. criteria based data move data between spreadsheets using SUMIF
    By GStephen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2013, 02:09 PM
  2. Replies: 2
    Last Post: 03-27-2013, 03:55 AM
  3. Replies: 0
    Last Post: 07-18-2012, 03:45 AM
  4. Finding data and copying back adjoining data from other spreadsheets
    By BurntOrange in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2011, 06:09 PM
  5. Import Data from multiple spreadsheets into seperate spreadsheets worksheet
    By cablecrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2008, 08:01 AM
  6. [SOLVED] Can Excel Spreadsheets be saved as Microsoft Works spreadsheets?
    By EXCEL WORKS CONFUSED in forum Excel General
    Replies: 4
    Last Post: 08-18-2006, 06:25 PM
  7. How do I combine data from various Excel spreadsheets into one Excel spreadsheets
    By SouthAfricanStan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2006, 01:10 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