+ Reply to Thread
Results 1 to 8 of 8

Compare cells, if true, result in another column

  1. #1
    Registered User
    Join Date
    11-03-2021
    Location
    The Netherlands
    MS-Off Ver
    O365
    Posts
    4

    Compare cells, if true, result in another column

    Hi all,

    See attachment for example

    My students takes an exam.

    Student has 19 points (M5 =SUM(C5:L5)) of 110 points.

    2,6 is than the result of the student his exam


    I want to compare colums M with column O and column O with column P.

    Result column P sets automatically in column B



    Example:

    I want that Excel automatically set B5 to 2,6



    M5 result compare with O1:O223, if true compare it with P1:P223 and that's the result for B5.

    What's the correct formula?
    Attached Images Attached Images
    Last edited by FreddyJay; 11-03-2021 at 09:40 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    23,376

    Re: Compare cells, if true, result in another column

    Try

    =VLOOKUP($M5,$O$1:$P$223,2,FALSE)
    Last edited by JohnTopley; 11-03-2021 at 10:01 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    11-03-2021
    Location
    The Netherlands
    MS-Off Ver
    O365
    Posts
    4

    Re: Compare cells, if true, result in another column

    Thanks John for your reply.
    When i do that, i've got an error, see attachment
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    23,376

    Re: Compare cells, if true, result in another column

    change "," to ";"

  5. #5
    Registered User
    Join Date
    11-03-2021
    Location
    The Netherlands
    MS-Off Ver
    O365
    Posts
    4

    Re: Compare cells, if true, result in another column

    When i do that, i've got the error: #NAME?

  6. #6
    Registered User
    Join Date
    11-03-2021
    Location
    The Netherlands
    MS-Off Ver
    O365
    Posts
    4

    Re: Compare cells, if true, result in another column

    Never mind, the solutions:
    =VLOOKUP(M6;$O$1:$P$223;2;FALSE)

    Thanks for your help!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    23,376

    Re: Compare cells, if true, result in another column

    My typo!!! sorry!

    =VLOOKUP($M5;$O$1:$P$223,2;FALSE)

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    Re: Compare cells, if true, result in another column

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I have done it for you this time: https://www.mrexcel.com/board/thread...olumn.1186597/.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

+ 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. Replies: 3
    Last Post: 02-06-2020, 04:37 PM
  2. [SOLVED] Compare list with another column, take rows where true, match to another column value
    By fly545 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-28-2019, 09:52 PM
  3. Replies: 11
    Last Post: 01-19-2018, 05:43 AM
  4. [SOLVED] fill data between interval in two column then see if the result is true or false
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2017, 12:11 PM
  5. Replies: 6
    Last Post: 11-13-2014, 11:26 AM
  6. Compare two cells and delete row if text is true
    By sanyaa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2014, 12:06 PM
  7. Compare a1 with entire column and return TRUE in b1
    By yiannis1925 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2011, 01:08 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