+ Reply to Thread
Results 1 to 4 of 4

Parse input and auto-replace

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Parse input and auto-replace

    I would like to set up a chart of values like so:

    ..| X| Y| Z|
    ------------
    1|...|...|...|
    2|...|...|...|
    3|...|...|...|
    4|...|...|...|
    5|...|...|...|


    And then, in another area of the spreadsheet, I would like to be able to type in values quickly in shorthand based on the chart coordinates ("3z" or "4y") and have Excel auto-replace my input with the value in that box of the chart. Ideally I'd like the auto-replace to be nondestructive (I could view it in the "4x" format again later if I wanted). Is there a way to do this? (also, is there a way to do this with 3 coordinates?)

    (The values in the chart don't follow a pattern and the x, y, and z are not variables, just headings).

    Thanks
    Last edited by Alabaster; 08-25-2009 at 07:26 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Parse input and auto-replace

    use index /match
    see attached
    Attached Files Attached Files
    Last edited by martindwilson; 08-25-2009 at 07:39 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Parse input and auto-replace

    Thank you for the quick and very helpful reply.

    Is there a way to replace the text within the same cell? I'd like it to behave somewhat like number formats (if I type "5" in a currency-formatted cell it will automatically display it as "$5.00") -- is there something like an advanced custom number-format that will allow me to type "5z" and automatically format that cell to display the value from the array?

    Also, is it possible for the input to be case-insensitive (so I can type 5Z or 5z interchangeably?)

    Thanks again

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Parse input and auto-replace

    that is not case sensitive as it stands,
    but you'd have to use vba code to do it in the same cell,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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