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
I've got the solution:
=VLOOKUP(M6;$O$1:$P$223;2;FALSE)

This worked for me

Thanks for your help!
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,934
Messages
6,175,488
Members
452,648
Latest member
Candace H

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