+ Reply to Thread
Results 1 to 4 of 4

"Rounding Column A to a certain value when column A is between number x and number y"

  1. #1
    Registered User
    Join Date
    06-27-2017
    Location
    United States
    MS-Off Ver
    office 2016
    Posts
    2

    Question "Rounding Column A to a certain value when column A is between number x and number y"

    Hello All,

    I am hoping some one is able to perhaps shed some light on the following road block i've hit...

    Okay, I have four values:

    .25
    .50
    .75
    1.00 ( im not sure if 1.00 is correct...it needs to represent rounding up to the next integer)

    These values are achieved depending on the decimal value of let's say, column A. Column A has values running from 0.00-1.00 ; the decimals represent minutes.
    In order for a value from column A to be rounded to one of the four original values listed, the following parameters exist:

    a value in Column A rounds to .25 when that value is between .01 and .39
    a value in Column A rounds to .5 when that value is between .4 and .64
    a value in Column A rounds to .75 when that value is between .65 and .89
    a value in Column A rounds to 1.00 ( the next integer) when that value is between .9 and 1.00

    Does anyone have any ideas on how I can achieve this?

    Please let me know if further explanation is needed of if the clarity of the question is lacking.

    Super Duper Thanks in Adavance!
    Last edited by SMJ2992; 06-27-2017 at 06:52 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,747

    Re: "Rounding Column A to a certain value when column A is between number x and number y"

    SMJ2992 welcome to the forum.

    Try this in B2 as below and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    1
    Numbers
    Return This
    2
    0.85
    0.75
    3
    0.35
    0.25
    4
    0.33
    0.25
    5
    0.60
    0.5
    6
    0.87
    0.75
    7
    0.91
    1
    8
    0.53
    0.5
    9
    0.04
    0.25
    10
    0.07
    0.25
    11
    0.02
    0.25
    12
    0.67
    0.75
    13
    0.81
    0.75
    14
    0.31
    0.25
    15
    0.53
    0.5
    16
    0.24
    0.25
    17
    0.25
    0.25
    18
    1.00
    1
    19
    0.98
    1
    20
    0.88
    0.75
    21
    0.16
    0.25
    Dave

  3. #3
    Registered User
    Join Date
    06-27-2017
    Location
    United States
    MS-Off Ver
    office 2016
    Posts
    2

    Re: "Rounding Column A to a certain value when column A is between number x and number y"

    Oh my yes!

    Thank you Dave!!!

    I really appreciate your assistance on this. Aside from the answer, I also now realize what question I wasn't asking myself when trying to fix this issue.

    Have a great one and many many thanks!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,747

    Re: "Rounding Column A to a certain value when column A is between number x and number y"

    Good to hear! Thanks for the feedback.

    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] Prevent Duplicate Receipt Number in Three Column [ e.g. Column "A", "B", "C" ]
    By MrsCharmy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-31-2017, 08:40 AM
  2. Replies: 1
    Last Post: 03-06-2017, 02:52 AM
  3. [SOLVED] Reference a "column name" instead of column number for saving data
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-26-2015, 05:38 AM
  4. [SOLVED] Tweak Code "change the column number to column letter" in Macro
    By capson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2013, 10:44 AM
  5. [SOLVED] Display the MAX number in a column excluding rows which have "yes" in another column
    By northcoms in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 08:00 AM
  6. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  7. Count Number of times Column A says "X" where Column B says "Y"
    By Bellio3105 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2012, 06:29 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