+ Reply to Thread
Results 1 to 9 of 9

Allow excel to read a rounded number as a whole number in a table?

  1. #1
    Registered User
    Join Date
    12-22-2023
    Location
    Swanland,England
    MS-Off Ver
    2021
    Posts
    4

    Allow excel to read a rounded number as a whole number in a table?

    Read round up value.jpg
    Table

    Mathematics
    Attainment
    Phase 2 3 #N/A
    Phase 3 4 #N/A
    Phase 4 2 Weak

    Overall 3 #N/A

    Look up Table

    1 Very Weak
    2 Weak
    3 Acceptable
    4 Good
    5 Very Good
    6 Outstanding


    I am trying to create a table so that the value in column 2 will use the look up table value and place the grade into the grid.e.g.
    Phase 2 3 Acceptable
    Phase 3 4 Good
    etc

    The problem I have is that the value in column 2 is a rounded up value for another part of the table and although it says 3 the actual value is 2.8 and the look up does not return the acceptable?
    Can you tell me how I can rectify this as I am stumped!
    Thanks
    Ken
    Attached Files Attached Files
    Last edited by Kenbat; 12-22-2023 at 08:54 AM. Reason: add spreadsheet

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Allow excel to read a rounded number as a whole number in a table?

    If the actual value in the cell is 2.8 but it is showing 3, it is not rounded up, it is just using a format which doesn't display the decimal places. So, it depends on what is an acceptable return. You could use ROUND, ROUNDUP, or ROUNDDOWN with zero decimal places, or you could use INT to take the integer part of the number. Or you could change your lookup function. If you have XLOOKUP, that has options to take the next higher or lower value if there is not an exact match.

    There are many options but you need to determine what is acceptable.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-22-2023
    Location
    Swanland,England
    MS-Off Ver
    2021
    Posts
    4

    Re: Allow excel to read a rounded number as a whole number in a table?

    Thank you Trevor - done that now - new to Forum so did not see that bit!! BW Ken

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Allow excel to read a rounded number as a whole number in a table?

    Clean all expected results.
    Try this in G7.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-22-2023
    Location
    Swanland,England
    MS-Off Ver
    2021
    Posts
    4

    Re: Allow excel to read a rounded number as a whole number in a table?

    Hi thanks for reply when I use the formula in G7 I get no wording from the lookup grid? i.e. acceptable does not appear? Thoughts??

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Allow excel to read a rounded number as a whole number in a table?

    The formula does NOT need to be copied down. Delete all results and use this in the FIRST cell only:

    IFERROR(XLOOKUP(ROUND(F7:F11,0),F13:F18,G13:G18,,0),"")

    refer to the file.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Allow excel to read a rounded number as a whole number in a table?

    Clean all expected results between G7:G11.

    Remove all @ symbol.

    G7
    =IFERROR(XLOOKUP(ROUND(F7:F11,0),$F$13:$F$18,$G$13:$G$18,,0),"")

    You don't need to copy down.

    PS. Could you use XLOOKUP function?

  8. #8
    Registered User
    Join Date
    12-22-2023
    Location
    Swanland,England
    MS-Off Ver
    2021
    Posts
    4

    Re: Allow excel to read a rounded number as a whole number in a table?

    Unfortunately does not work if the F7 to F11 values change??
    Need to use the value placed in F7 to F11 to be changed to the actual value displayed and then G7 to G8 can use the look up table for the correct wording??
    Ken

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Allow excel to read a rounded number as a whole number in a table?

    Is your workbook calculation mode in manual? Another formula =XLOOKUP(ROUND(F7:F11,0),F13:F18,G13:G18,"") or =IFERROR(VLOOKUP(ROUND(F7:F11,0),$F$13:$G$18,2,0),"").

+ 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 that can take a number and divide it into a rounded number evenly
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2016, 07:26 PM
  2. [SOLVED] Looking up a non rounded number...
    By DeeLaa77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2015, 02:09 AM
  3. New to VBA, Function returning number rounded to whole number
    By Sonnerstudent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 01:39 PM
  4. syntax for comparing a rounded number to a rounded list
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2013, 10:12 AM
  5. Replies: 2
    Last Post: 07-15-2012, 04:05 PM
  6. Number of rows that a pivot table can read from SQL Server
    By tomahawk86 in forum Excel General
    Replies: 1
    Last Post: 06-04-2012, 10:35 AM
  7. EXCEL 2007 - csv number rounded on save
    By RussAtMatthews in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-31-2009, 12:02 AM

Tags for this Thread

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