Formula question

Cr4ig

New Member
Joined
May 5, 2021
Messages
22
Office Version
  1. 2016
Platform
  1. Windows
Morning you smart people, i have tried a few different ways , but struggling, it look like my last post asking this question was removed for some reason? can anyone tell me what the formula would be for this please?

1670577082048.png
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
not following
formula to do what - you dont show any examples of results

from the Table
code H with a Score of 9 - shows a grade of 5 , not 4 as highlighted -
also why is F , 5 highlighted ?

are you using version 2016
if later version MAXIFS()

or a 2 criteria lookup
but just need to know what you want exactly

{=MAX(IF(criteria_range1=criteria1, IF(criteria_range2=criteria2, max_range)))}
{=MAX(IF((criteria_range1=criteria1) * (criteria_range2=criteria2), max_range))}

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Sorry if this is not making sense, Result should be in Cell G7, its looking at E7 & F7, Range A & B with the result from C, the orange numbers are probably confussing things ignore them i should have taken them out before posting sorry.

CC
 
Upvote 0
Hello,

try
Book6
ABCDEFG
1
2CodeScoreGrade
3H14
4H24
5H34Result
6H44CodeScoreGrade
7H54H95
8H64
9H74
10H85
11H95
12F104
13F114
14F124
15F134
16F144
17F155
18F165
19F175
20F185
Sheet1
Cell Formulas
RangeFormula
G7G7=INDEX(C3:C20,MATCH(1,(E7=A3:A20)*(F7=B3:B20)),0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
you have an answer now - also posted with an answer here


using the MAX(IF as suggested


Book3
ABCDEFGHI
1
2CodeScoreGrade
3H14
4H24
5H34Result
6H44CodeScoreGradeMaxif
7H54H955
8H64
9H74
10H85
11H95
12F104
13F114
14F124
15F134
16F144
17F155
18F165
19F175
20F185
21
Sheet1
Cell Formulas
RangeFormula
G7G7=INDEX(C3:C20,MATCH(1,(E7=A3:A20)*(F7=B3:B20)),0)
I7I7=MAX(IF((A3:A20=E7) * (B3:B20=F7),C3:C20))
 
Upvote 0
Excel Formula:
=XLOOKUP(E7&F7,Code&Score,Grade)
Where Code = A3:A20 and Score = B3:B20 and Grade = C3:C20

I would use named ranges as above and also create each column as a table.
The advantage of this being if you add data to your spreadsheet it will automatically be incorporated into the formula.
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,922
Members
449,056
Latest member
denissimo

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