+ Reply to Thread
Results 1 to 4 of 4

Made a simple template but not working

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Made a simple template but not working

    Hi all,

    In Sheet2, I named cell A1 to Text_1, and cell A2 to Text_2, and then make them with values of Sheet1!A:A, Sheet1!B:B.

    I then used the formula: =INDEX(Text_2,MATCH(DATEVALUE("2012-Jun-30"),Text_1,0)) to find the value I want in Sheet1!B:B. But this resulted in an #VALUE! error.

    Do you know why this is wrong? I attached the file here. Thanks for help.
    Attached Files Attached Files
    Last edited by BNCOXUK; 04-13-2013 at 06:36 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Made a simple template but not working

    Possibly


    =INDEX(Text2,MATCH(DATEVALUE("3/31/2012"),Text1,0))

    The range was wrong in the formula.
    You may have to change the date back to your region.
    Hit Ctrl & F3 and see that the Text_1 and Text_2 still refer to A1 And A2 on sheet 2 not the columns you thought they refered to.

    http://www.davesexcel.com/howtouseindexmatch.htm
    Last edited by davesexcel; 04-13-2013 at 11:06 AM.

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Made a simple template but not working

    Thanks for the help.

    Is it possible that I can make a formula in cells A1, A2 whose values refer to Sheet1!A:A and Sheet1!B:B)? And then I use the formula: =INDEX(Text_2,MATCH(DATEVALUE("2012-Jun-30"),Text_1,0)) to find the value I want in Sheet1!B:B. Here, cells A1, A2 are named as Text_1 and Text_2.

    I know named ranges can accomplish this, but is it possible to do this without named ranges?

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Made a simple template but not working

    I found a way to accomplish what I want: =INDEX(INDIRECT(Text_2),MATCH(DATEVALUE("30-Jun-2012"),INDIRECT(Text_1),0))
    Last edited by BNCOXUK; 04-13-2013 at 06:52 PM.

+ 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