+ Reply to Thread
Results 1 to 5 of 5

how to display a selected TXT or a number

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    England
    MS-Off Ver
    spreadsheet
    Posts
    3

    how to display a selected TXT or a number

    Hello,
    I am new to this forum and would like to thank you very much for all yours contributions to a forum like this.
    I am build a excel a sheet with but some how my index function does not work in a particular cell,like as what I want. may be I am using wrong function and please help me to clarify this issue.
    details are below
    Sheet 1
    A B C D E F
    Name Code Subject Grade Class 1 Class 2
    Mary ENG English 1,2&3 period 1 Period 2
    Maria GEO Geography 3&4 Period 2 Period 1

    Sheet 2
    A B C D
    Name Period 1 Period 2 Period 3
    Mary
    Maria

    So I want fill on sheet 2 column B under period 1 to the selection on Sheet 1's E column "Class" name.
    formula I used on Sheet 2 column B, C & D : =INDEX(sheet1!E2:F2,MATCH(A2,sheet1!A2:A3,0),MATCH(B2,sheet!E2:F2,0))
    but it shows #NUM! error.
    Last edited by rasheed2017; 07-11-2017 at 03:08 AM.

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,632

    Re: how to display a selected TXT or a number

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a description of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to display a selected TXT or a number

    Hi,

    You only have one row in your INDEX function- you need as many as the first MATCH refers to
    =INDEX(sheet1!E2:F3,MATCH(A2,sheet1!A2:A3,0),MATCH(B2,sheet!E2:F2,0))
    although that should result in a #REF error rather than #NUM
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    07-11-2017
    Location
    England
    MS-Off Ver
    spreadsheet
    Posts
    3

    Re: how to display a selected TXT or a number

    when I select value from sheet "code" the name on Code E2:R2 has to display on sheet "latest" B41.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-11-2017
    Location
    England
    MS-Off Ver
    spreadsheet
    Posts
    3

    Re: how to display a selected TXT or a number

    Sorry when I select value on Sheet "Code" E4:E41, I miss this place on previous post

+ 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. VLOOKUP or INDEX/MATCH with multiple column index numbers
    By cerebral87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2017, 07:13 PM
  2. [SOLVED] Create an index keeping original index reference and appending new where necessary
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2016, 01:34 PM
  3. [SOLVED] Index un-indexed items keeping original index numbers where they exist
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-25-2016, 03:55 AM
  4. Copy tabs names to index sheet in alphabetical order
    By cjharley1450 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2015, 01:00 PM
  5. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  6. Index match offset to get subsequent index values in a column
    By Andrew_Step in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2013, 02:55 PM
  7. Replies: 4
    Last Post: 12-27-2012, 06:18 PM

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