+ Reply to Thread
Results 1 to 13 of 13

How to pull unique data from another sheet

Hybrid View

Luk3y How to pull unique data from... 09-11-2017, 06:41 AM
Glenn Kennedy Re: How to pull unique data... 09-11-2017, 09:27 AM
Luk3y Re: How to pull unique data... 09-12-2017, 02:22 AM
Glenn Kennedy Re: How to pull unique data... 09-12-2017, 04:07 AM
Luk3y Re: How to pull unique data... 09-12-2017, 08:35 AM
Glenn Kennedy Re: How to pull unique data... 09-12-2017, 08:47 AM
Luk3y Re: How to pull unique data... 09-13-2017, 03:03 AM
Glenn Kennedy Re: How to pull unique data... 09-13-2017, 03:49 AM
Luk3y Re: How to pull unique data... 09-13-2017, 08:15 AM
Glenn Kennedy Re: How to pull unique data... 09-14-2017, 03:58 AM
Luk3y Re: How to pull unique data... 09-14-2017, 08:29 AM
Glenn Kennedy Re: How to pull unique data... 09-14-2017, 08:48 AM
Glenn Kennedy Re: How to pull unique data... 09-14-2017, 09:23 AM
  1. #1
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to pull unique data from another sheet

    OK. take a look at this. I created another B/L sheet and attached it to the summary. I need to create a helper column. If it can't be on the summary sheet, it can be on another (hidden) sheet.

    Helper, Summary I5, copied down:
    =IF(A5="","",COUNTIF(INDIRECT("'"&A5&"'!V11:V20"),">0"))

    counts the number of "active" containers on each B/L.

    Then on stock take C4, an array formula, copied down:

    =IFERROR(INDEX(Summary!$A$5:$A$20,MATCH(0,--(COUNTIF($C$3:C3,Summary!$A$5:$A$20)=Summary!$I$5:$I$20),0))&"","")

    This returns the B/L number the appropriate numberof times, taken from the helper column.

    Then in Stock Take A4, copied across and down, a bit of a monster (also an array formula):

    =IFERROR(INDEX(INDIRECT("'"&$C4&"'!"&LEFT(ADDRESS(1,COLUMNS($A:A),4),LEN(ADDRESS(1,COLUMNS($A:A),4))-1)&"2:"&LEFT(ADDRESS(1,COLUMNS($A:A),4),LEN(ADDRESS(1,COLUMNS($A:A),4))-1)&"100"),SMALL(IF(INDIRECT("'"&$C4&"'!C2:C100")=$C4,ROW($A$2:$A$100)),COUNTIF($C$4:$C4,$C4))),"")

    It looks worsethanit actually is, because there are some bits in there that increment the column letters inside INDIRECT as you copy across. Otherwise it wouldhavelooked like this:

    =IFERROR(INDEX(INDIRECT("'"&$C4&"'!A1:A100"),SMALL(IF(INDIRECT("'"&$C4&"'!C2:C100")=$C4,ROW($A$2:$A$100)),COUNTIF($C$4:$C4,$C4))),"")

    but you would have to manually change the letters in red in each column. I suspect that htiswill need a bit of tweaking, depending on EXACTLY what your summary sheet lookslike when there are multiple B/Ls present. But it will give you an indication that what you want IS do-able.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  2. #2
    Registered User
    Join Date
    09-11-2017
    Location
    Tilbury
    MS-Off Ver
    2016
    Posts
    6

    Re: How to pull unique data from another sheet

    Great, that's brilliant, thanks for the help.

    I just need for the 'packs' on the right to represent how many are left after the dispatches, the ones in red.

    Is this possible?

+ 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] Pull data into a unique table using VBA?
    By ccastell88 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2015, 08:31 PM
  2. [SOLVED] Pull data into a unique table?
    By ccastell88 in forum Excel General
    Replies: 3
    Last Post: 08-03-2015, 04:02 AM
  3. Replies: 3
    Last Post: 05-21-2014, 08:34 AM
  4. Pull data from HTML tag which is unique (tag within a tag)
    By gochel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-21-2013, 08:54 PM
  5. Replies: 5
    Last Post: 01-11-2013, 04:22 PM
  6. [SOLVED] Pull unique values from column without duplicates and export to another sheet
    By vandetta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2013, 10:35 PM
  7. Replies: 6
    Last Post: 09-12-2011, 12:51 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