+ Reply to Thread
Results 1 to 3 of 3

How to find index and value of an Array

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    24

    How to find index and value of an Array

    Array("Tier 1", "Tier 2", "Tier 3", "Tier 4", "Tier 5", "Tier 1/2", "Tier 2/3", "Tier 3/4", "Tier 4/5")

    Given an index, how do I find the value of an Array at the index?
    (ex: Array(4) = ?)
    And

    Give a value in an Array, how do I find that value's index?
    (ex: Array(?) = Tier 4)

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

    Re: How to find index and value of an Array

    Does this help?
    Please Login or Register  to view this content.

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: How to find index and value of an Array

    Very simple way to do this if it is a one dimensional array like your ex.

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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