+ Reply to Thread
Results 1 to 7 of 7

Rounding numbers or match lookup?

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Rounding numbers or match lookup?

    My survey results matches to actions called from a table and total scores per category are 0,4,8 or 16. If the survey count totals 12, I thought do do a round function to the nearest multiple to return the actions but as the numbers are stepped and not incremental, I don't know how to do this?

    Any suggestions?

  2. #2
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Re: Rounding numbers or match lookup?

    plz upload a sample file.
    Don't forget to rate 1 who helped u, using "Star"

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding numbers or match lookup?

    what do you mean nearest multiple what should 12 return? 8 or 16
    if its always the higher number
    =INDEX({16,8,4,0},MATCH(A1,{16,8,4,0},-1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Re: Rounding numbers or match lookup?

    Sample attached, apologies for earlier omission!
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding numbers or match lookup?

    how is 12 nearer to 16 than 8?
    mind you
    =SUM($B$2+$E$2+$B$5+$E$5) is the same as
    =SUMPRODUCT($B$2+$E$2+$B$5+$E$5,16)/SUM(16)


    EDIT I GOT THAT WRONG STILL THINKING
    What does 2 give 0 OR 4
    Last edited by martindwilson; 06-18-2014 at 08:55 AM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding numbers or match lookup?

    ok rather than some complicated rounding thing
    since you have whole numbers any way just create a table
    giving what you want
    eg
    0 0
    1 0
    2 4
    3 4
    4 4
    5 4
    6 8
    7 8
    8 8
    9 8
    10 8
    11 8
    12 16
    13 16
    14 16
    15 16
    16 16
    then you can use that
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Re: Rounding numbers or match lookup?

    Thank you Martin. Some good ideas and good challenges. Is 2 closer to 0 or 4 is a good example. The questions in the survey omitted in attachment have complicated this for me. I'll use the match lookup for now as I can set the score to match a result as you suggest. Thank you for your input!

+ 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] Rounding problems using lookup instead of rounding functions
    By thnkfree in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-18-2014, 06:21 PM
  2. [SOLVED] Index Match with lookup values containing letters, numbers and spaces
    By makinwaves in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-18-2014, 08:06 PM
  3. Rounding with if/and/lookup statements
    By mack zilla in forum Excel General
    Replies: 3
    Last Post: 07-16-2012, 12:04 PM
  4. [SOLVED] rounding numbers for match function
    By erc_blair in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 11:15 AM
  5. [SOLVED] rounding numbers for match function
    By erc_blair in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2006, 09:25 PM

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