+ Reply to Thread
Results 1 to 13 of 13

How to pull unique data from another sheet

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

    How to pull unique data from another sheet

    Hi All, I require a stock Take Page, that I can print off to use a hard copy. I have provided the information that is entered in to the Summary and the information I require pulled through from the summary, that needs to be on the Stock Take sheet.

    Ive attempted to use lookups but they wont lookup and pull through the data from multiple lines on a completely automated sheet.

    Is there any formulas that will pull the information?
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    May there be multiple B/L hyperlinks active on any day... or just the one?
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: How to pull unique data from another sheet

    Hi Glenn, yes there could be several B/L on the summary page and tabs.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    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

  5. #5
    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?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    Yep. Ordinary formula in O4, copied down:

    =IFERROR(INDEX(INDIRECT("'"&$C4&"'!V11:V20"),MATCH(B4,INDIRECT("'"&$C4&"'!U11:U20"),0)),"")

    Do check out the format of your summary sheet and let me know if there are issues. Other than that...

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    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 a massive help.

    So for instance if there was further variables such as those in the attached, where the sizes, thickness, ppp can all be different within a container, is there away to pull this information in the same way?
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    Mission creep. I'll have to ruminate on this. Can I radically rearrange the summary shet, if needed?

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

    Re: How to pull unique data from another sheet

    Yeah, that shouldn't be an issue.

    So we use the summary Page for a quick over view, the individual BOL pages are where the majority of the detail are kept.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    Been away a lot. Nearly done though. I'm probably going to create an extra sheet and put almost all the cr@p int it. A couple of Qs, though.

    What is the MAXIMUM number of B/L's that you will have to take into account at any time?

    What is the MAXIMUM number of ACTIVE (ie containing stock) stock lines in a B/L that you are likely to have? I suspect that this number will be truly horrendous!!

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

    Re: How to pull unique data from another sheet

    Thanks

    Maximum BOL on any one stock sheet would probably in the region of 200

    Maximum Active stock line will be anything up to 1000!

    Hope that's not to worrying?

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    I suspect that you will need VBA to do this. Picking up sheet names using INDIRECT is not hugely efficient. With that level if activity your PC will probably melt....

    I'll post something a bit later and you can have a look.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to pull unique data from another sheet

    Ths is as far as a formula-based solution can go... I think. Take a look. It does all that you want; but it'll probably not work on such a lrge scale.


    Enable macros on opening to enable a sheet list to be generated in column A of Help.

    Happy to explain...
    Attached Files Attached Files

+ 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