+ Reply to Thread
Results 1 to 5 of 5

dragging a formula down through cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Australia
    MS-Off Ver
    2010, 2013
    Posts
    39

    dragging a formula down through cells

    hello everyone, I'm having a little bit of a drama with a simple worksheet.
    As you can see in the sheet i have a formula worked out that gives me a total depending on the letter that is in the "code" B2 cell- it matches the letter from the codes from the right and enters the value associated. all works fine however i need to use the same formula for over 200 cells leading down but when i drag it down the formula changes and then doesn't work. Can alone advise it there is a way to drag it down or another formula to use.
    my actual sheet has 11 codes and over 200 cells down so typing them is a lot of work and I'm trying to avoid it.
    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: dragging a formula down through cells

    Hi,

    in H2:I100 your costs table, maybe

    =VLOOKUP(B2,$H$2:$I$100,2;0)


    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,300

    Re: dragging a formula down through cells

    In C2:
    =IFERROR(VLOOKUP(B2,$H$2:$I$6,2,FALSE),0)
    and copy down.
    Anyone who confuses correlation and causation ends up dead.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: dragging a formula down through cells

    =VLOOKUP(B2,H$2:I$6,2,0)
    and copy down to B6
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: dragging a formula down through cells

    Just for knowledge

    The above or friendly and good enough
    =INDEX($I$2:$I$6,MATCH(B2,$H$2:$H$6,0))
    =INDIRECT(ADDRESS((MATCH(B2,$H$2:$H$6,0)+1),COLUMN(I2)))
    Punnam

    Punnam

+ 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. [SOLVED] problem Copying/dragging a formula down into cells below
    By nje in forum Excel General
    Replies: 4
    Last Post: 07-02-2012, 10:48 AM
  2. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  3. [SOLVED] How do I keep a formula constant in dragging cells below the rows
    By analyst storm in forum Excel General
    Replies: 3
    Last Post: 02-15-2006, 09:25 PM
  4. [SOLVED] How to offset certain cells after dragging down a formula
    By Bram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2005, 12:05 PM
  5. Dragging a formula across many cells
    By KrazyKevin in forum Excel General
    Replies: 2
    Last Post: 01-15-2005, 11:38 AM

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