+ Reply to Thread
Results 1 to 5 of 5

copying adjacent cells with formula

  1. #1
    tanner
    Guest

    copying adjacent cells with formula

    I wonder if it's possible to use vlookup or some such function to call
    and copy cells from a table.

    I have a table such as:

    product color units weight retails discount total cost

    I want create a sheet where when I choose the product, the next cell
    shows a dependent list of the available colors for the product
    (something I think I already figured out), but then I'd like to copy
    the adjacent cells, with formulas, from the product table. So if I
    choose product A I get all the cells copied from that line to a form.

    Hope that makes sense...and I really hope it's possible.

    Thanks in advance,

    Tanner


  2. #2
    Bob Phillips
    Guest

    Re: copying adjacent cells with formula

    =VLOOKUP(A2,Sheet1!$A$1:$G$100,COLUMN(),False)

    put this in B2 and copy across

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "tanner" <[email protected]> wrote in message
    news:[email protected]...
    > I wonder if it's possible to use vlookup or some such function to call
    > and copy cells from a table.
    >
    > I have a table such as:
    >
    > product color units weight retails discount total cost
    >
    > I want create a sheet where when I choose the product, the next cell
    > shows a dependent list of the available colors for the product
    > (something I think I already figured out), but then I'd like to copy
    > the adjacent cells, with formulas, from the product table. So if I
    > choose product A I get all the cells copied from that line to a form.
    >
    > Hope that makes sense...and I really hope it's possible.
    >
    > Thanks in advance,
    >
    > Tanner
    >




  3. #3
    tanner
    Guest

    Re: copying adjacent cells with formula

    Hi Bob,

    Thanks. I tried this and it only partially worked. only the first two
    cells copied over. Any ideas why?


  4. #4
    Bob Phillips
    Guest

    Re: copying adjacent cells with formula

    Should work for all. Do the rest have values?

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "tanner" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Bob,
    >
    > Thanks. I tried this and it only partially worked. only the first two
    > cells copied over. Any ideas why?
    >




  5. #5
    tanner
    Guest

    Re: copying adjacent cells with formula

    It's kind of a complicated table that I'm looking up from. What I need
    is to copy the formulas and values of adjacent cells based on the
    choice made.

    Item Color Quantity Weight Units/row
    units/Pallet Total Weight
    Paleo Beige 123 23.5lbs 42
    144
    Bergerac Grey 123 32 lbs 38
    122


    So if I have a drop down list on another sheet that chooses Paleo, then
    the adjacent formulas and cells from the table would be copied over.
    What makes it more complicated is that the color is a dependent list
    based on the product chosen, but I can put color ahead of item and deal
    with that dependent list that way. I just need some way, however, to
    copy all those adjacent values and cells from the table. Something like
    "lookup a value" then "copy cells from column c:g adjacent to this.

    Maybe I should be doing this through a macro tied to a button.


    Thanks again for your help.


+ 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