+ Reply to Thread
Results 1 to 4 of 4

If "value" then copy from "cellA" to "cellB" drag down issues

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    If "value" then copy from "cellA" to "cellB" drag down issues

    Hello all,

    My boss has decided a big spreadsheet we use is too big, so I'm trying to create a setup with a master worksheet that contains all data, then worksheets for different categories. After trying some things, I settled on trying to write a statement that searches for a value in the category field, and if it finds it, copies a cell from the master worksheet to the appropriate category specific worksheet. The formula I found to do this is

    =IF(ISERR(SEARCH("FALL", 'Master Sheet'!$I$2)), "",'Master Sheet'!$A$2)

    My issue is when I try to drag that formula down, I'm hoping for it to change the reference values to I3 and A3, like formulas usually do when you drag them. I have enough data points that changing them manually isn't really an option.

    So I'm either looking for a different formula that won't give me the same issues, or a way to get the relative reference to work when I drag.

    As an fyi, I'm good enough at Excel to understand the syntax for things like the formula above, but I don't know how to create macros or anything.

    thank you!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: If "value" then copy from "cellA" to "cellB" drag down issues

    get rid of the $
    =IF(ISERR(SEARCH("FALL", 'Master Sheet'!I2)), "",'Master Sheet'!A2)

    http://web.pdx.edu/~stipakb/CellRefs.htm
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: If "value" then copy from "cellA" to "cellB" drag down issues

    Adjust the "freeze sign" $ like this:
    $I$2 ==> $I2
    Quang PT

  4. #4
    Registered User
    Join Date
    02-18-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If "value" then copy from "cellA" to "cellB" drag down issues

    Now I feel like a total idiot. Ha. Thank you!

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 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