+ Reply to Thread
Results 1 to 10 of 10

Using Concatenate inside a vlookup

  1. #1
    ScottO
    Guest

    Re: Using Concatenate inside a vlookup

    If you take a look at the INDIRECT function, I think it will solve your problem.
    Rgds,
    ScottO

    "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    | Hi, I'm putting together a spreadsheet to automate some summarizing from
    | other spraedsheets I receive every day. The main roadblock I've run into is
    | that the name of the source sheet changes every day, i.e., "june 24th.xls" &
    | "june 25th.xls"
    | So what I thought I'd to is create some lists with the part of the name that
    | changes and then have a cell concatenate the varialble part of the file name,
    | as below:
    |
    | $A$1(list data): june 24 through june 30
    |
    | Then a formula to incorporate this into a vlookup
    |
    | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"), 5,
    | FALSE)
    |
    | The trouble I'm running into is that the concatenate function sticks
    | quotation marks around what it sticks together, and the vlookup doesn't
    | understand the table_array reference with quotation marks around it.
    |
    | the formula created ends up being:
    | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    |
    | Is there any way to pull a string from cells and use it in a vlookup? Or a
    | way of getting rid of the quotation marks around the resulting array_table
    | value?
    |
    |
    |



  2. #2
    Biff
    Guest

    Re: Using Concatenate inside a vlookup

    Note: Indirect will not work unless the other workbook is open. If the other
    workbook is open, it will work temporarily. As soon as the other workbook is
    closed and a calulation takes place the formula will once again return #REF!

    Biff

    "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > If you take a look at the INDIRECT function, I think it will solve your
    > problem.
    > Rgds,
    > ScottO
    >
    > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > | other spraedsheets I receive every day. The main roadblock I've run into
    > is
    > | that the name of the source sheet changes every day, i.e., "june
    > 24th.xls" &
    > | "june 25th.xls"
    > | So what I thought I'd to is create some lists with the part of the name
    > that
    > | changes and then have a cell concatenate the varialble part of the file
    > name,
    > | as below:
    > |
    > | $A$1(list data): june 24 through june 30
    > |
    > | Then a formula to incorporate this into a vlookup
    > |
    > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > 5,
    > | FALSE)
    > |
    > | The trouble I'm running into is that the concatenate function sticks
    > | quotation marks around what it sticks together, and the vlookup doesn't
    > | understand the table_array reference with quotation marks around it.
    > |
    > | the formula created ends up being:
    > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > |
    > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > a
    > | way of getting rid of the quotation marks around the resulting
    > array_table
    > | value?
    > |
    > |
    > |
    >
    >




  3. #3
    bmclean
    Guest

    Re: Using Concatenate inside a vlookup

    I found that as well. I'll have to work around the trouble somehow, but I Was
    really hoping to be able to do it without opening the workbook.

    Thanks to both of you who replied.

    "Biff" wrote:

    > Note: Indirect will not work unless the other workbook is open. If the other
    > workbook is open, it will work temporarily. As soon as the other workbook is
    > closed and a calulation takes place the formula will once again return #REF!
    >
    > Biff
    >
    > "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    > news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > > If you take a look at the INDIRECT function, I think it will solve your
    > > problem.
    > > Rgds,
    > > ScottO
    > >
    > > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > > | other spraedsheets I receive every day. The main roadblock I've run into
    > > is
    > > | that the name of the source sheet changes every day, i.e., "june
    > > 24th.xls" &
    > > | "june 25th.xls"
    > > | So what I thought I'd to is create some lists with the part of the name
    > > that
    > > | changes and then have a cell concatenate the varialble part of the file
    > > name,
    > > | as below:
    > > |
    > > | $A$1(list data): june 24 through june 30
    > > |
    > > | Then a formula to incorporate this into a vlookup
    > > |
    > > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > > 5,
    > > | FALSE)
    > > |
    > > | The trouble I'm running into is that the concatenate function sticks
    > > | quotation marks around what it sticks together, and the vlookup doesn't
    > > | understand the table_array reference with quotation marks around it.
    > > |
    > > | the formula created ends up being:
    > > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > > |
    > > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > > a
    > > | way of getting rid of the quotation marks around the resulting
    > > array_table
    > > | value?
    > > |
    > > |
    > > |
    > >
    > >

    >
    >
    >


  4. #4
    ScottO
    Guest

    Re: Using Concatenate inside a vlookup

    If you take a look at the INDIRECT function, I think it will solve your problem.
    Rgds,
    ScottO

    "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    | Hi, I'm putting together a spreadsheet to automate some summarizing from
    | other spraedsheets I receive every day. The main roadblock I've run into is
    | that the name of the source sheet changes every day, i.e., "june 24th.xls" &
    | "june 25th.xls"
    | So what I thought I'd to is create some lists with the part of the name that
    | changes and then have a cell concatenate the varialble part of the file name,
    | as below:
    |
    | $A$1(list data): june 24 through june 30
    |
    | Then a formula to incorporate this into a vlookup
    |
    | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"), 5,
    | FALSE)
    |
    | The trouble I'm running into is that the concatenate function sticks
    | quotation marks around what it sticks together, and the vlookup doesn't
    | understand the table_array reference with quotation marks around it.
    |
    | the formula created ends up being:
    | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    |
    | Is there any way to pull a string from cells and use it in a vlookup? Or a
    | way of getting rid of the quotation marks around the resulting array_table
    | value?
    |
    |
    |



  5. #5
    Biff
    Guest

    Re: Using Concatenate inside a vlookup

    Note: Indirect will not work unless the other workbook is open. If the other
    workbook is open, it will work temporarily. As soon as the other workbook is
    closed and a calulation takes place the formula will once again return #REF!

    Biff

    "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > If you take a look at the INDIRECT function, I think it will solve your
    > problem.
    > Rgds,
    > ScottO
    >
    > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > | other spraedsheets I receive every day. The main roadblock I've run into
    > is
    > | that the name of the source sheet changes every day, i.e., "june
    > 24th.xls" &
    > | "june 25th.xls"
    > | So what I thought I'd to is create some lists with the part of the name
    > that
    > | changes and then have a cell concatenate the varialble part of the file
    > name,
    > | as below:
    > |
    > | $A$1(list data): june 24 through june 30
    > |
    > | Then a formula to incorporate this into a vlookup
    > |
    > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > 5,
    > | FALSE)
    > |
    > | The trouble I'm running into is that the concatenate function sticks
    > | quotation marks around what it sticks together, and the vlookup doesn't
    > | understand the table_array reference with quotation marks around it.
    > |
    > | the formula created ends up being:
    > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > |
    > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > a
    > | way of getting rid of the quotation marks around the resulting
    > array_table
    > | value?
    > |
    > |
    > |
    >
    >




  6. #6
    bmclean
    Guest

    Re: Using Concatenate inside a vlookup

    I found that as well. I'll have to work around the trouble somehow, but I Was
    really hoping to be able to do it without opening the workbook.

    Thanks to both of you who replied.

    "Biff" wrote:

    > Note: Indirect will not work unless the other workbook is open. If the other
    > workbook is open, it will work temporarily. As soon as the other workbook is
    > closed and a calulation takes place the formula will once again return #REF!
    >
    > Biff
    >
    > "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    > news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > > If you take a look at the INDIRECT function, I think it will solve your
    > > problem.
    > > Rgds,
    > > ScottO
    > >
    > > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > > | other spraedsheets I receive every day. The main roadblock I've run into
    > > is
    > > | that the name of the source sheet changes every day, i.e., "june
    > > 24th.xls" &
    > > | "june 25th.xls"
    > > | So what I thought I'd to is create some lists with the part of the name
    > > that
    > > | changes and then have a cell concatenate the varialble part of the file
    > > name,
    > > | as below:
    > > |
    > > | $A$1(list data): june 24 through june 30
    > > |
    > > | Then a formula to incorporate this into a vlookup
    > > |
    > > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > > 5,
    > > | FALSE)
    > > |
    > > | The trouble I'm running into is that the concatenate function sticks
    > > | quotation marks around what it sticks together, and the vlookup doesn't
    > > | understand the table_array reference with quotation marks around it.
    > > |
    > > | the formula created ends up being:
    > > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > > |
    > > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > > a
    > > | way of getting rid of the quotation marks around the resulting
    > > array_table
    > > | value?
    > > |
    > > |
    > > |
    > >
    > >

    >
    >
    >


  7. #7
    bmclean
    Guest

    Using Concatenate inside a vlookup

    Hi, I'm putting together a spreadsheet to automate some summarizing from
    other spraedsheets I receive every day. The main roadblock I've run into is
    that the name of the source sheet changes every day, i.e., "june 24th.xls" &
    "june 25th.xls"
    So what I thought I'd to is create some lists with the part of the name that
    changes and then have a cell concatenate the varialble part of the file name,
    as below:

    $A$1(list data): june 24 through june 30

    Then a formula to incorporate this into a vlookup

    =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"), 5,
    FALSE)

    The trouble I'm running into is that the concatenate function sticks
    quotation marks around what it sticks together, and the vlookup doesn't
    understand the table_array reference with quotation marks around it.

    the formula created ends up being:
    =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)

    Is there any way to pull a string from cells and use it in a vlookup? Or a
    way of getting rid of the quotation marks around the resulting array_table
    value?




  8. #8
    ScottO
    Guest

    Re: Using Concatenate inside a vlookup

    If you take a look at the INDIRECT function, I think it will solve your problem.
    Rgds,
    ScottO

    "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    | Hi, I'm putting together a spreadsheet to automate some summarizing from
    | other spraedsheets I receive every day. The main roadblock I've run into is
    | that the name of the source sheet changes every day, i.e., "june 24th.xls" &
    | "june 25th.xls"
    | So what I thought I'd to is create some lists with the part of the name that
    | changes and then have a cell concatenate the varialble part of the file name,
    | as below:
    |
    | $A$1(list data): june 24 through june 30
    |
    | Then a formula to incorporate this into a vlookup
    |
    | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"), 5,
    | FALSE)
    |
    | The trouble I'm running into is that the concatenate function sticks
    | quotation marks around what it sticks together, and the vlookup doesn't
    | understand the table_array reference with quotation marks around it.
    |
    | the formula created ends up being:
    | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    |
    | Is there any way to pull a string from cells and use it in a vlookup? Or a
    | way of getting rid of the quotation marks around the resulting array_table
    | value?
    |
    |
    |



  9. #9
    Biff
    Guest

    Re: Using Concatenate inside a vlookup

    Note: Indirect will not work unless the other workbook is open. If the other
    workbook is open, it will work temporarily. As soon as the other workbook is
    closed and a calulation takes place the formula will once again return #REF!

    Biff

    "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > If you take a look at the INDIRECT function, I think it will solve your
    > problem.
    > Rgds,
    > ScottO
    >
    > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > | other spraedsheets I receive every day. The main roadblock I've run into
    > is
    > | that the name of the source sheet changes every day, i.e., "june
    > 24th.xls" &
    > | "june 25th.xls"
    > | So what I thought I'd to is create some lists with the part of the name
    > that
    > | changes and then have a cell concatenate the varialble part of the file
    > name,
    > | as below:
    > |
    > | $A$1(list data): june 24 through june 30
    > |
    > | Then a formula to incorporate this into a vlookup
    > |
    > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > 5,
    > | FALSE)
    > |
    > | The trouble I'm running into is that the concatenate function sticks
    > | quotation marks around what it sticks together, and the vlookup doesn't
    > | understand the table_array reference with quotation marks around it.
    > |
    > | the formula created ends up being:
    > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > |
    > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > a
    > | way of getting rid of the quotation marks around the resulting
    > array_table
    > | value?
    > |
    > |
    > |
    >
    >




  10. #10
    bmclean
    Guest

    Re: Using Concatenate inside a vlookup

    I found that as well. I'll have to work around the trouble somehow, but I Was
    really hoping to be able to do it without opening the workbook.

    Thanks to both of you who replied.

    "Biff" wrote:

    > Note: Indirect will not work unless the other workbook is open. If the other
    > workbook is open, it will work temporarily. As soon as the other workbook is
    > closed and a calulation takes place the formula will once again return #REF!
    >
    > Biff
    >
    > "ScottO" <scott_orchard_REMOVETHIS@hotmail.comTHISTOO> wrote in message
    > news:eW%23sn6QgFHA.2700@TK2MSFTNGP15.phx.gbl...
    > > If you take a look at the INDIRECT function, I think it will solve your
    > > problem.
    > > Rgds,
    > > ScottO
    > >
    > > "bmclean" <bmclean@discussions.microsoft.com> wrote in message
    > > news:DFA89EAB-FA9D-4948-B45B-A46F6082517A@microsoft.com...
    > > | Hi, I'm putting together a spreadsheet to automate some summarizing from
    > > | other spraedsheets I receive every day. The main roadblock I've run into
    > > is
    > > | that the name of the source sheet changes every day, i.e., "june
    > > 24th.xls" &
    > > | "june 25th.xls"
    > > | So what I thought I'd to is create some lists with the part of the name
    > > that
    > > | changes and then have a cell concatenate the varialble part of the file
    > > name,
    > > | as below:
    > > |
    > > | $A$1(list data): june 24 through june 30
    > > |
    > > | Then a formula to incorporate this into a vlookup
    > > |
    > > | =VLOOKUP(D22, CONCATENATE("'", $A$1, "th.xls", "Sheet1'!$A$8:$E$1000"),
    > > 5,
    > > | FALSE)
    > > |
    > > | The trouble I'm running into is that the concatenate function sticks
    > > | quotation marks around what it sticks together, and the vlookup doesn't
    > > | understand the table_array reference with quotation marks around it.
    > > |
    > > | the formula created ends up being:
    > > | =VLOOKUP(D22, "'C:\data\[june 24th.xls]Sheet1'!$A$8:$E$1000", 5, FALSE)
    > > |
    > > | Is there any way to pull a string from cells and use it in a vlookup? Or
    > > a
    > > | way of getting rid of the quotation marks around the resulting
    > > array_table
    > > | value?
    > > |
    > > |
    > > |
    > >
    > >

    >
    >
    >


+ 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