+ Reply to Thread
Results 1 to 15 of 15

VBA Create A matrix of data from tables

  1. #1
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    VBA Create A matrix of data from tables

    Hi Can someone help,
    I need to create a table that has counts of "NULL" based on the data from another tables, please see a example of what i want to achieve below.
    Problem is the data is continuous so there will a lot more of U and D numbers but they follow similar patter.


    Matrix.jpg

    The Table produced should be on another sheet, but for convenience i have added it on one sheet. The data starts at cell G7 sometimes there may be "NULL" on say E12, i would NOT want those nulls counted, just the "NULL" on Cell G7 and on wards..Example.xlsx
    Last edited by shelim481; 11-25-2019 at 10:08 AM.

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

    Re: VBA Create A matrix of data from tables

    Please read the advice on the yellow banner?

  3. #3
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    done, thanks

  4. #4
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    im working from a previous code but having a hards time,
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Create A matrix of data from tables

    Outputs from W10.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    that is beautiful thank you

  7. #7
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    Just one thing ive noticed, when there are one null value for one u and d, it does not count the nulls, example below..


    U1 U2
    D1 Null Null

    D2 Null Null
    Last edited by shelim481; 11-27-2019 at 05:55 AM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Create A matrix of data from tables

    Can not even guess what you are trying to say.

    If you upload a workbook with your desired result that is not working as you expect, it may help.

  9. #9
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    Please find attached example

    Attachment 651690

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Create A matrix of data from tables

    It says, "Invalid Attachment".

  11. #11
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    sorry about this but if you can please copy the below into excel and check it out.. thank for your help..


    Please Login or Register  to view this content.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Create A matrix of data from tables

    That's because it is now "NULL", not "Null".
    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    Thank YOU for your help

  14. #14
    Registered User
    Join Date
    11-04-2015
    Location
    London, england
    MS-Off Ver
    2007
    Posts
    60

    Re: VBA Create A matrix of data from tables

    I know it been a long time but need some help with this topic again when it is D1 and U1 Group only i get a type mismatch error any ideas?

    Please Login or Register  to view this content.
    Last edited by shelim481; 02-10-2020 at 09:43 AM.

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Create A matrix of data from tables

    No idea.

    If you upload a problematic workbook, it may help.

+ 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] COUNTIF/SUMPRODUCT(?) to create a matrix from data
    By diamond chap in forum Excel General
    Replies: 27
    Last Post: 11-25-2019, 10:52 AM
  2. How do i put these Rates into matrix Tables!! Please Help
    By e.limm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2017, 09:15 AM
  3. Replies: 0
    Last Post: 03-10-2015, 03:34 PM
  4. Create a new table (or matrix) from an exported set of data from a website.
    By dherrero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2014, 11:19 AM
  5. Replies: 6
    Last Post: 11-18-2013, 11:28 PM
  6. Trying to create an output grid/matrix with custom data.
    By JoeTheBro in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2013, 10:47 AM
  7. Create a matrix from data in three column
    By sa02000 in forum Excel General
    Replies: 3
    Last Post: 06-27-2006, 09:30 PM

Tags for this Thread

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