Compare cells, if true, result in another column

FreddyJay

New Member
Joined
Nov 3, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi all,

See attachment for example

My students makes a exam.

I want compare two columns and return a result in an another column.
Example:

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

=SUM(C5:L5) result 19 . Searching 19 in column O and in column P is that 2,6.
Thats the result of my student his exam

I want that excel sets automatically cell B5 to 2,6.

What's the correct formula?
 

Attachments

  • example1.png
    example1.png
    49.6 KB · Views: 27
  • example2.png
    example2.png
    34.5 KB · Views: 23

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi & welcome to MrExcel.
How about in B5
Excel Formula:
=VLOOKUP(M5,$O$2:$P$100,2,0)
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Compare cells, if true, result in another column
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
I want to edit my first post, but i don't know where:

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?
 
Upvote 0
Thanks Fluff for your reply,

When i do that, i've get an error, see attachment
 

Attachments

  • error.png
    error.png
    43.2 KB · Views: 18
Upvote 0
What do you normally use as the separator in a formula?
 
Upvote 0
In that case change the commas to semi-colons.
 
Upvote 0
Are the values in column O numbers? It's impossible to tell from an image.
 
Upvote 0

Forum statistics

Threads
1,223,933
Messages
6,175,473
Members
452,646
Latest member
tudou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top