Consulting

Results 1 to 3 of 3

Thread: Divide and place remainder in separate cell

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Divide and place remainder in separate cell

    I need to be able to read column A and divide that number by 3. If it is divisible by 3 then do nothing, if there is a remainder then place it in the first available space in column A on sheet 2. The goal is to determine how much over or under people pay each month. sample workbook attached. Thanks
    Peace of mind is found in some of the strangest places.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Modulus divides a number by a divisor and returns the remainder

    So in Cell A1 on Sheet to, add the formula:
    =MOD(Sheet1!A1,3)
    and drag down...
    K :-)

  3. #3
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Thanks. That got it. Solved.
    Peace of mind is found in some of the strangest places.

Posting Permissions

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