+ Reply to Thread
Results 1 to 26 of 26

Stop copying at 85

  1. #1
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Stop copying at 85

    Hello all,

    I want to copy numbers from sheet1 to sheet2. I want a formula that will copy only up to 85.

    1. If the first column has value of greater than or equal to 85 it will stop copying even second column has a lesser value.
    2. If the Second column has a value of greater that or equal to 85 it will stop copying even first column has a lesser value.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    Enter formula in B2 and pull it to C2 and then copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C
    1 Time[Hr] ABC DEF
    2 0 0.00 0.00
    3 1 29.33 29.16
    4 2 45.80 40.71
    5 4 65.30 57.72
    6 6 80.46 70.04
    7 8 79.14
    8 10 85.00
    9 12
    10 16
    11 20
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi Alkey,

    Thanks for the reply. sorry for not making myself clear. I want also that the the columns are equal.

    I want also to see (87.92, 91.42).

    I would appreciate if you can modify your formula.

    Thank you so much.

    thong

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    I don't think I get it. Do you want everything copied from columns B and C?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi AlKey,

    Thanks for the reply.

    Sorry, What I want is the two column should be equal in count.
    Image.png
    Thanks.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    and count is based on what?

  7. #7
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hello,

    Same criteria greater than or equal to 85.

    Thanks.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    pull formula to the right and then down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi AlKey,

    Sorry If I'm asking a lot. Is there a way that you can also include to copy the time points in your formula?

    Thank you so much.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    This is confusing but here is my take on the problem. I take it that you want to stop copying if either column B or C reaches 85 or more.
    Enter this in Sheet2!B2 and fill across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    1
    Time[Hr]
    ABC
    DEF
    2
    0
    0
    0
    3
    1
    29.32583333
    29.16
    4
    2
    45.80100185
    40.7123
    5
    4
    65.29619673
    57.71949562
    6
    6
    80.458241
    70.0388204
    7
    8
    8
    10
    9
    12
    10
    16
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    After you ran formula in B and C use this on in col A

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi newdoverman,

    Thank you for the reply. yes I want to stop copying either column B or C reaches greater than or equal to 85.

    I tried your formula but it stops me at 80.46 and 70.04.

    if you can modify your formula to include the time is highly appreciated and it will be a great help for me.

    Thank you.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    Final

    Enter formula in A2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then enter this one in B2 and pull to the right and down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B C
    1 Time[Hr] ABC DEF
    2 0 0.00 0.00
    3 1 29.33 29.16
    4 2 45.80 40.71
    5 4 65.30 57.72
    6 6 80.46 70.04
    7 8 87.92 79.14
    8 10 91.42 85.00
    9
    10
    11

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    Enter this formula (just the original copied right) in Sheet2!A2 and fill right and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    1
    Time[Hr]
    ABC
    DEF
    2
    0
    0
    0
    3
    1
    29.32583333
    29.16
    4
    2
    45.80100185
    40.7123
    5
    4
    65.29619673
    57.71949562
    6
    6
    80.458241
    70.0388204

  15. #15
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Stop copying at 85

    Similar to AlKey (except my glass is half empty)
    In A2 copied down
    =IF(ISNUMBER(B2),Sheet1!$B35,"")

    In B2 copied across and down
    =IF(OR(Sheet1!$B35<85, Sheet1!$C35<85), Sheet1!B35,"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  16. #16
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi AlKey & newdoverman,

    Sorry to both of you. I Noticed that We have 87.92 at column B at Hour 8. copying supposed to be stop their because it is greater than 85.

    Thanks.

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Stop copying at 85

    I thought you wanted it to continue until both columns were over 85. NewDoverMan's solution should work for you, it stops if either is over 85.

  18. #18
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi ChemistB,

    I'm just wondering I tried NewDoverMan's forumula but it stopped me at Hour 6, suppose to be hour 8.

    Thanks

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    You did ask for "I want a formula that will copy only up to 85." 87.92 being greater than 85 will not be included with this criteria. If you are wanting a higher ceiling, what is it?

    It seems that you want something a bit different.
    I inserted a row on Sheet1 between the data and the headers
    A
    B
    C
    33
    Time[Hr]
    ABC
    DEF
    34
    35
    0
    0
    0
    36
    1
    29.33
    29.16
    37
    2
    45.80
    40.71
    38
    4
    65.30
    57.72
    39
    6
    80.46
    70.04
    40
    8
    87.92
    79.14
    41
    10
    91.42
    85.00
    42
    12
    92.62
    88.15
    43
    16
    93.07
    90.25
    44
    20
    92.67
    91.15

    Then on Sheet2!A2 entered this formula and filled across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    1
    Time[Hr]
    ABC
    DEF
    2
    0
    0
    0
    3
    1
    29.32583333
    29.16
    4
    2
    45.80100185
    40.7123
    5
    4
    65.29619673
    57.71949562
    6
    6
    80.458241
    70.0388204
    7
    8
    87.9233715
    79.13653852
    8
    9

  20. #20
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Stop copying at 85

    Quote Originally Posted by thong127 View Post
    Hi AlKey & newdoverman,

    Sorry to both of you. I Noticed that We have 87.92 at column B at Hour 8. copying supposed to be stop their because it is greater than 85.

    Thanks.
    Please look at your own post#5 and look at my post#13. Are you trying to confuse the entire world?

  21. #21
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    Here is your workbook with the procedures of msg#19 working
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi Alkey,

    Sorry for that...but in my post#5 my purpose is I want to show that the two columns should be equal in counts. That's why I copied your post#1 and fill the value of hour 8 & 10 to column B.

    Again, Im sorry for the confusion.

    Thanks

  23. #23
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Hi newdoverman ,

    Is there a way that I can use your formula without inserting a row between the data and the headers?

    Thank you.

  24. #24
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    This appears to work with your example data
    Enter in Sheet2!A2 and fill across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by newdoverman; 01-21-2016 at 03:10 PM.

  25. #25
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Stop copying at 85

    Thanks Newdoverman!

  26. #26
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Stop copying at 85

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. [SOLVED] Copy upwards from last row - need to stop copying when run into new value
    By Excel_Tony in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2014, 03:24 PM
  2. Formula is copying into cell. Please make it stop!
    By paulhoskin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2013, 01:27 PM
  3. How to stop automatically filling when copying
    By clucas in forum Excel General
    Replies: 3
    Last Post: 02-14-2008, 01:47 PM
  4. how to stop someone from copying my protected files
    By smackerb in forum Excel General
    Replies: 2
    Last Post: 07-28-2006, 06:10 PM
  5. [SOLVED] How do I stop automatically copying an entry to the next column?
    By Paul S in forum Excel General
    Replies: 0
    Last Post: 09-22-2005, 09:05 AM
  6. Copying numbers down to a stop point
    By toesparkle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2005, 08:52 AM
  7. [SOLVED] Stop Copying at Specific Row
    By smandula in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2005, 10:06 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