+ Reply to Thread
Results 1 to 7 of 7

Help! Roundup/round down depending on cell value

  1. #1
    Registered User
    Join Date
    02-16-2016
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    4

    Help! Roundup/round down depending on cell value

    Hi all, this is the first time I've used this forum, so please bear with me while I try to explain what I need.

    What I want is a formula for B1 and B2 which is 50% of A1 and A2 and if the value of A1 is not divisible by 2, but A2 is divisible by 2, then both B1 and B2 round up and vice versa. However, if neither A1 nor A2 are divisible by 2, i need B1 to round down and B2 to round up. Is this possible? I hope I've explained it clearly. Please see attachment. Thanks in advance for any advice.
    Attached Files Attached Files
    Last edited by nicolam_83; 02-16-2016 at 05:35 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Help! Roundup/round down depending on cell value

    Doesn't sound complicated but I still don't see expected result from your example. Don't even know what is in A1, A2... And do you take in C column from B column or A column.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    02-16-2016
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Help! Roundup/round down depending on cell value

    I'm sorry, I have edited my post to hopefully make it clearer. Thanks.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Help! Roundup/round down depending on cell value

    I don't quite follow your explanation, but I think it will look something like:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 02-16-2016 at 08:31 PM.
    Ben Van Johnson

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Help! Roundup/round down depending on cell value

    What if both are divisible by 2?
    Quang PT

  6. #6
    Registered User
    Join Date
    02-16-2016
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Help! Roundup/round down depending on cell value

    protonLeah, thank you for your reply. I have tried your formula and an error comes up saying - A value used in the formula is of the wrong data type?

    bebo021999 - if they are both divisible by two, that's fine, I am only struggling for this formula if none of them are divisible by 2.

    Thank you.

  7. #7
    Registered User
    Join Date
    02-16-2016
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Help! Roundup/round down depending on cell value

    protonLeah, thank you for your reply. I have tried your formula and an error comes up saying - A value used in the formula is of the wrong data type?

    bebo021999 - if they are both divisible by two, that's fine, I am only struggling for this formula if none of them are divisible by 2.

    Thank you.

+ 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] formula to roundup o rounddown depending on value
    By JC25 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2013, 08:42 AM
  2. [SOLVED] Round, Roundup, Rounddown or something else????
    By PERE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 09:14 AM
  3. Using ROUNDUP and a Minimum value (that doesn't round) in the same function.
    By Stahlfeder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2012, 06:43 PM
  4. Combining MAX, ROUNDUP & IF for the same cell
    By babydee0413 in forum Excel General
    Replies: 7
    Last Post: 02-22-2010, 03:13 PM
  5. Roundup a cell with a formula
    By bamroll in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-16-2009, 04:04 PM
  6. Round one cell depending on value of another
    By SueJB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2006, 06:25 AM
  7. [SOLVED] Roundup or Ceiling Function to round to a specific number
    By Angie33 in forum Excel General
    Replies: 18
    Last Post: 06-29-2006, 12:50 PM
  8. [SOLVED] How can I roundup a cell that already has a formula in it?
    By Timsalive in forum Excel General
    Replies: 1
    Last Post: 06-22-2006, 07:45 PM

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