+ Reply to Thread
Results 1 to 4 of 4

IF Statement for copying multiple cells if argument true

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    USA
    Posts
    30

    IF Statement for copying multiple cells if argument true

    Hi

    I am trying an IF statement which should copy multiple cells if argument is true. For example I am in B2 and if A2=A3 then I want data from A10 to A20 in B2 to B12. Hopefully I was able to clarify the situation. Thanks!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Statement for copying multiple cells if argument true

    Hi

    Maybe in b2 and drag down.

    =IF($A$2=$A$3,A10,"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    USA
    Posts
    30

    Re: IF Statement for copying multiple cells if argument true

    But this will copy just one cell, I need to copy that whole row i.e. A10 to A20. And then I will drage down to C2 and so on. Thanks!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Statement for copying multiple cells if argument true

    Quote Originally Posted by saeed9313 View Post
    But this will copy just one cell, I need to copy that whole row i.e. A10 to A20. And then I will drage down to C2 and so on. Thanks!
    No. If you drag(copy) down the formula, will copy range A10:A20, TO b2:b12.

    ...I need to copy that whole row i.e. A10 to A20. And then I will drage down to C2
    A10:A20, ISN'T one row..

    Would you like to upload a small sample workbook, to show us what do you mean?

+ 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