+ Reply to Thread
Results 1 to 14 of 14

Issued - Returned - Outstanding Resilts

  1. #1
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Issued - Returned - Outstanding Resilts

    Hi,

    I’ve posted this a few weeks ago & it was suggested doing it in Access. I had a go but not successful, I feel a little more comfortable and have a little more understanding in Excel.
    Please see attached example - I would like a result sheet with the Region/Outstanding units that have not been inspected,

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    You can do this using Power Query (Get & Transform Data):

    Format your Issued Units data as a table ("tblIssued") and your Returned Inspected Units data as a table ("tblReturned"), then use the following query:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: Issued - Returned - Outstanding Resilts

    @Arch
    I closed your previous thread with the same subject to avoid confusion. is that OK with you?

  4. #4
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    Thank you.

  5. #5
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    Hi,

    Thank you for your prompt reply. Power query is something I've never come across. I've managed to get into the editor and vaguely understand how it's working. The Regions will increase as the work goes on so I’ve had gone into the Advance editor and added , “Data.5” is this correct ? it will end up with around 350 Regions - will this be OK ?

    Cheers

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    Here's an edited version, which will cope with dynamic numbers of rows, for each region. It will handle any number of regions.

    Please Login or Register  to view this content.
    I'm not convinced your output format is the most usable, especially with 350 columns - but that's another question!

  7. #7
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    Cheers that works a treat - The output format is ok; I can see why you are saying what you’re saying. Is it possible to still show the region as a header even when the result is Zero and show 0 as a result? I hadn’t thought about this I need the status of every region,

    Thank you

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    Easy way, but this returns null, rather than zero, in the totals row:
    Please Login or Register  to view this content.
    Slightly longer winded, but returns zero in totals:
    Please Login or Register  to view this content.
    Another thought crosses my mind - you realise you can connect the two tables directly to Access, you don't have to paste into Excel, first. Just replace these lines:
    Please Login or Register  to view this content.
    with something like:
    Please Login or Register  to view this content.
    Last edited by Olly; 05-15-2019 at 11:03 AM.

  9. #9
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    Morning Olly,

    Once again thank you for your support and yes the link to Access will be a plus. Can I link to two queries I have set up in Access? the queries hive off all the data I require from a certain date,

    Cheers

  10. #10
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    Yes, you can get data from Access views (queries) or tables.

  11. #11
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    Hi Olly,

    Please see attached Worksheet with a large amount of data. Unfortunately, it seems not to be doing the job across the whole of the Data -
    MW23602 is correct 4 Issued 4 Returned zer0 result then MW11803 1 Issued 1 Returned 1 Outstanding. I’m wondering if it’s something I,ve done? Or not done,

    Cheers
    Attached Files Attached Files

  12. #12
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    You have a data type mismatch between your two tables. Issued Units are stored as text in tblIssued, and as Variants in tblReturned, which means that numeric unit numbers aren't matching between the two tables.

    Explicitly define the data type, in your query, by changing:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    01-09-2018
    Location
    N.Wales
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Issued - Returned - Outstanding Resilts

    That works a treat - Cheers

  14. #14
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Issued - Returned - Outstanding Resilts

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You may also 'Add Reputation' to those who helped you. Thanks.

+ 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. Issued & Returned - Identify Total Not Returned
    By ArchGIS in forum Excel General
    Replies: 6
    Last Post: 05-15-2019, 06:29 AM
  2. Replies: 15
    Last Post: 08-10-2017, 06:58 AM
  3. Replies: 0
    Last Post: 04-10-2017, 01:18 AM
  4. [SOLVED] Receipts issued and record of payments
    By Marianne Rachmann in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-30-2012, 08:11 AM
  5. Count annual issued items
    By ali husain in forum Excel General
    Replies: 5
    Last Post: 12-28-2008, 03:09 AM
  6. Calculating units issued
    By Gerry1206 in forum Excel General
    Replies: 1
    Last Post: 06-21-2008, 10:57 AM
  7. [SOLVED] Shifting Calculated Result - Re-Issued
    By sony654 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2006, 06:15 AM

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