+ Reply to Thread
Results 1 to 9 of 9

copy data if two coditions are true

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    copy data if two coditions are true

    Hi

    i want to copy data from column A on column C and two conditions are on column B

    condition 1 if on column B are at list five similar and consecutive data copy data from column a on column c on same rows

    condition 2 this similar dat must be specified in formula in my exmple is ex.

    Please see the atachment and put formula in the file.
    Attached Files Attached Files
    Last edited by pedersenn; 08-10-2016 at 01:59 PM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: copy data if two coditions are true

    Try this and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: copy data if two coditions are true

    the condition is

    if at list five consecutive data a prezent copy from column A on C

    example

    3 ex not copy becose are not at list five of ex consecutive
    4 ex not copy
    5 ex not copy
    1 skip
    2 skip
    3 skip
    5 ex copy 5 becose are at list five ex consecutive
    7 ex copy 7
    6 ex copy 6
    5 ex copy 5
    8 ex copy 8
    7 ex copy 7

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: copy data if two coditions are true

    Try this in C3 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I suppose your data in A3:B14 and C2 is empty.

  5. #5
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: copy data if two coditions are true

    thank you

    The formula worked for five consecutive "ex" but I want to work for ex>=5

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: copy data if two coditions are true

    Replace "*ex*" by "*ex *" , that is, put a space in front of the ex and use >=5 instead =5

  7. #7
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: copy data if two coditions are true

    I don't understand

    Look at the attached file the result must be like there.
    Attached Files Attached Files

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: copy data if two coditions are true

    Hi
    COUNTIF(B3:B7, not COUNTIF(B3:B8,

  9. #9
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: copy data if two coditions are true

    ok Mr. José Augusto thanks!

+ 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. VBA Loop. If true then copy this data into column A
    By shopholic12 in forum Excel General
    Replies: 2
    Last Post: 11-02-2015, 01:29 PM
  2. Replies: 3
    Last Post: 01-25-2015, 07:11 PM
  3. [SOLVED] Copy cells data to another worksheet if statement is true
    By Arthfael in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-25-2014, 07:42 AM
  4. Need multiple coditions to be met for a COUNTIF.
    By DanielWinning in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2013, 12:04 PM
  5. Copy data from C3:I3 if R3=TRUE
    By MSB2011 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2011, 03:19 PM
  6. Copy data from one cell to another if a blank condition is true
    By gadjit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-08-2009, 08:17 AM
  7. copy data of check box is clicked true
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2008, 02:13 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