Results 1 to 10 of 41

Thread: copy,paste,calculate Cell value based on calculations & comparisonsother cells same row. Decimal places

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #26
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,521
    Rep Power
    10
    [color="#3E0000"]


    Solution ( guess )
    The previous formula solution already always adjust number down,

    Row\Col
    D
    H
    K
    L
    M
    N
    O
    P
    2
    1087
    1079.9
    1090.69
    21813.8
    21813
    1090.65
    1090.65
    1090.65
    3
    148.05
    146.5
    147.95
    2959
    2959
    147.95
    147.95
    147.95
    4
    265
    267.15
    264.47
    5289.4
    5289
    264.45
    264.45
    264.45
    5
    30.4
    29.95
    30
    600
    600
    30
    30
    30

    Row\Col
    D
    H
    K
    L
    M
    N
    O
    P
    2
    1087
    1079.9
    1090.69
    =K2*100/5
    =INT(L2)
    =M2*5/100
    =INT(L2)*5/100
    =INT(K2*100/5)*5/100
    3
    148.05
    146.5
    147.95
    =K3*100/5
    =INT(L3)
    =M3*5/100
    =INT(L3)*5/100
    =INT(K3*100/5)*5/100
    4
    265
    267.15
    264.47
    =K4*100/5
    =INT(L4)
    =M4*5/100
    =INT(L4)*5/100
    =INT(K4*100/5)*5/100
    5
    30.4
    29.95
    30
    =K5*100/5
    =INT(L5)
    =M5*5/100
    =INT(L5)*5/100
    =INT(K5*100/5)*5/100

    The above solution is .05 too small for row 4

    So previous solution is correct if H < D
    If H > D , the previous solution is .05 too small , so previous solution must be adjusted by +.05 if H > D
    =IF(H2K2*100/5)*5/100,IF(H2>D2,(INT(K2*100/5)*5/100)+0.05,"H is equal to D"))
    =IF(H3K3*100/5)*5/100,IF(H3>D3,(INT(K3*100/5)*5/100)+0.05,"H is equal to D"))
    =IF(H4K4*100/5)*5/100,IF(H4>D4,(INT(K4*100/5)*5/100)+0.05,"H is equal to D"))
    =IF(H5K5*100/5)*5/100,IF(H5>D5,(INT(K5*100/5)*5/100)+0.05,"H is equal to D"))


    But we must also check if number is already exact multiple of .05
    Like if ( integer (value/.05))
    Attached Files Attached Files
    Last edited by DocAElstein; 04-20-2020 at 03:31 PM.

Similar Threads

  1. Replies: 26
    Last Post: 09-26-2020, 05:56 PM
  2. Replies: 6
    Last Post: 08-28-2019, 09:42 AM
  3. copy data and paste it in another sheet
    By newbie2 in forum Excel Help
    Replies: 1
    Last Post: 07-15-2015, 01:38 PM
  4. Trapping Copy To Range Before Copy/Cut Paste
    By Rasm in forum Excel Help
    Replies: 4
    Last Post: 04-07-2011, 07:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •