+ Reply to Thread
Results 1 to 17 of 17

Matrix Graphing (like battleship)

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Unhappy Matrix Graphing (like battleship)

    Hi,
    I have a question.
    I have a series of results like this:
    Screenshot_2.png

    And I want a graph (not a worksheet) that updates constantly to my results that looks something like this:

    Screenshot_1.png

    Any idea?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Matrix Graphing (like battleship)

    I don't see the logic in the coloring.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    The coloring would be bars on the chart, representing the spacial location of items 1 and 2.
    In my example, I have Item 2 in locations(x,y) B1, a2 and a3, that is represented below in orange as occupying those locations.

    Did I explain myself right? It's a bit confusing, but is much simular to battleship board game.

  4. #4
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    Screenshot_3.png
    This is the same as I sent before but without the colours.
    I would like a bar chart with different color for each item so that I can se the spacial representation of those items (It's for and industry that has different items of fixed bench locations).

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Matrix Graphing (like battleship)

    A
    B
    C
    D
    E
    1
    Item 1
    Item 2
    2
    A1
    B1
    3
    A2
    a2
    4
    A3
    a3
    5
    B2
    6
    7
    1
    2
    3
    8
    A
    Item 1
    Item 1
    Item 1
    B8: {=IF(OR(EXACT($A8 & B$7, $A$2:$A$5)), $A$1, IF(OR(EXACT($A8 & B$7, $B$2:$B$5)), $B$1, ""))}
    9
    a
    Item 2
    Item 2
    10
    B
    Item 2
    Item 1
    11
    b

  6. #6
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    Tks, I see what you are doing there, but I don't want a formula to fill the matrix, I wanted a bars graph of something like that to visually spot the items.
    Because the items can be as much as 15 or 20 and they have large names, so a colour or bar graph would be more appropriate.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Matrix Graphing (like battleship)

    Then use the two OR functions for CF:

    A
    B
    C
    D
    E
    F
    G
    1
    Item 1
    Item 2
    1
    2
    3
    2
    A1
    B1
    A
    3
    A2
    a2
    a
    4
    A3
    a3
    B
    5
    B2
    b


    =OR(EXACT($A8 & B$7, $A$2:$A$5))

    =OR(EXACT($A8 & B$7, $B$2:$B$5))

  8. #8
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    Tks for your help and sry that doesn't do.
    But it has to be a graph and not just cell filling or coloring.
    A graph like a map with x and y coordinates, beeing x the numbers and y the letters.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Matrix Graphing (like battleship)

    Instead of showing a graphic of what you do not want, how about mocking up something that looks like what you DO want? There is too much guesswork here: help us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Thumbs up Re: Matrix Graphing (like battleship)

    You're right.
    So, I'll try to explain better, sketched something up like I would need on photoshop.

    This is just a sample of the set of data that I have regarding 2 batch numbers (the letters represent the "x" coordinates on the tables, and the numbers the "y" coordinates on the tables, with the batch numbers on top ).
    Screenshot_4.png
    This is the graph that I want to be shown:
    Graph1.png

    The batch numbers and positions can be in constant change, so I need the graph to know where are the product batch numbers positioned on the tables, and it can't be by CF because the constant change, adding up of new batches, removing some could not automate the process.

    Does this sound clearer than before?
    Sry by all the "messy" idea transfer here.
    Last edited by n4rs; 10-31-2018 at 06:45 AM.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Matrix Graphing (like battleship)

    Yes - I am wondering if this is doable using conditional formatting. How many items will there be? How big is the dataset?

  12. #12
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    Table space is from "A" to "h" coordinate on y axis (8 coordinates), and 1 to 5 coordinate on x axis. Making a total of 40 spaces (or vice versa, not that important if letters on y or x)
    Batch numbers can vary from 0 to 40 different batches that can change weekly or daily, some remain more time than others.
    I have automated the process of traceability recording for the batch numbers, simplifying it with VBA userforms, but can't find a way to visually demonstrate their positions on the tables.
    IMO conditional formatting can't be that dynamic (or at least I don't think so), cause the user has to be blocked to just use the forms.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Matrix Graphing (like battleship)

    OK, then CF is not really an option. Maybe someone has a better idea.

  14. #14
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    I think it could be done with a scatter graph somehow

  15. #15
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Matrix Graphing (like battleship)

    To create a scatter chart you need to decode the A1 a1 items in to x and y values.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  16. #16
    Registered User
    Join Date
    08-03-2012
    Location
    Santarém, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Matrix Graphing (like battleship)

    That's really it! Seems a lot simpler than the options I had already tried! Tk you very much!!

    But is there a way that I can do it with VBA code so that each time a new batch enters, the graph will be updated with the form values entered, as well as each time a batch leaves or changes places?
    I have the following entry form:
    Entryform.png

    Each checkbox represents a coordinate (On the letter coordinates the bigger checkboxes represent the uppercase letters, the smaller ones right beneath represent the lowercase letters).
    Last edited by n4rs; 10-31-2018 at 08:40 AM.

  17. #17
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Matrix Graphing (like battleship)

    if you have a fixed input then you could link the checkboxes to cells and base formula of the those to create a xy value.

    You probably don't need to decode the A1 a1 stuff. But it's hard to say as you haven't describe your problem or provided an example workbook.

+ 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. Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  2. [SOLVED] Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Battleship Code
    By Cynite in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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