+ Reply to Thread
Results 1 to 5 of 5

Convert numbers with decimals as whole numbers to combine with SWITCH function

  1. #1
    Registered User
    Join Date
    09-20-2019
    Location
    Cebu, Philippines
    MS-Off Ver
    2016
    Posts
    44

    Convert numbers with decimals as whole numbers to combine with SWITCH function

    Hello.

    I'm trying to convert a decimal number to a whole number so that I can convert that whole number to its actual value in text.

    I attached a sample file. On the file, it indicates the Level [in numbers] and Text Value [in words] - but I wouldn't want it to show tha table anywhere on the file, thus I thought of combining MROUND and SWITCH formulae. But I cant get around it.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Convert numbers with decimals as whole numbers to combine with SWITCH function

    Try this in C2:

    =CHOOSE(ROUND(B2,0),"Minimal","Low","Moderate","High")

    then copy down. You don't need the table.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert numbers with decimals as whole numbers to combine with SWITCH function

    Are all your averages <=4 ?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    09-20-2019
    Location
    Cebu, Philippines
    MS-Off Ver
    2016
    Posts
    44

    Re: Convert numbers with decimals as whole numbers to combine with SWITCH function

    Wow!

    Thanks Pete! This is much shorter and less complicated! What I used was still the SWITCH + MROUND formulae when I found out that I was actually ordering it the right way. CHOOSE is a great formula.

    Again, thanks Pete.

  5. #5
    Registered User
    Join Date
    09-20-2019
    Location
    Cebu, Philippines
    MS-Off Ver
    2016
    Posts
    44

    Re: Convert numbers with decimals as whole numbers to combine with SWITCH function

    Yeah, maxed at 4 since there are only 4 text values.

+ 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. Convert numbers - switch commas for decimals and vice versa
    By shdwfx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-14-2016, 03:43 PM
  2. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  3. Convert numbers with decimals to percentage
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 11-11-2008, 06:14 PM
  4. Convert numbers from Fractions to Decimals
    By palm101 in forum Excel General
    Replies: 1
    Last Post: 02-08-2008, 12:16 AM
  5. [SOLVED] How to convert numbers with apostrophe's (ex. 219'2) to decimals?
    By Kaci in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. How to convert numbers with apostrophe's (ex. 219'2) to decimals?
    By Kaci in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. How to convert numbers with apostrophe's (ex. 219'2) to decimals?
    By Kaci in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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