Same name different values - Max

nemanjanv7

New Member
Joined
Aug 27, 2011
Messages
12
Hi,
I need help wit formula:
How do I get MAX from specific text criteria in a table? I need VALUE 1 (MAX). So somehow I need to get number 50


VALUE1 -500
VALUE1 50
VALUE4 750
VALUE6 -8
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,
I need help wit formula:
How do I get MAX from specific text criteria in a table? I need VALUE 1 (MAX). So somehow I need to get number 50


VALUE1 -500
VALUE1 50
VALUE4 750
VALUE6 -8

Let E2 house VALUE1, an item of interest.

F2, control+shift+enter, not just enter:

=MAX(IF($A$2:$A$5=E2,$B$2:$B$5))
 
Upvote 0
Nemanja's Questions

Of course, :)

Now I'm stuck with droplists... Every time I try to sort it in table or delete a row or add one in between, all that mix up. The stuff from droplist are part of formula. I know that's the problem. but can it be fixed?
 
Upvote 0
Re: Nemanja's Questions

Of course, :)

Now I'm stuck with droplists... Every time I try to sort it in table or delete a row or add one in between, all that mix up. The stuff from droplist are part of formula. I know that's the problem. but can it be fixed?

Care to elaborate? The formula is not sensitive to whether the range it's given is sorted or not.
 
Upvote 0
Ok it's actually more tables conected.
First table consists input data. The second table consists of some linked data and of course calculations.
I can give you an example of banking. (It's for my UNI, seminar paper)

Input Table:
ID code
Data
Name
amount
type of loan
grace period
(These data are spread throughout columns)

Loan types Table: this is actually a list consisting of Loan1 and loan2

Bank Info Table: (description and values in columns)
Interest - Value
Loan1 (=Loan1 from loan types table) - Duration
Loan2 (=) - Duration

and finally, the last table. the one with a problem. It's a calculation table
Id code: there is a droplist from the first table and you choose code
Name: when code is chosen name automatically copies via VLOOKUP function
Total amount: automatic, vlookup
interest: calcs = Total amount * Interest (from BankInfoTable)
Amount with interest: = Total amount + interest
payment: =ROUNDUP(AmountWithInterest/(VLOOKUP(LoanType,BankInfoTable,2,FALSE)-Grace period),0)
years left: =(VLOOKUP'Loan Type',BankInfoTable,2,0))-'Current year'-('Loan Started')
Loan type: Vlookup
Started: Vlookup
Ending: VLOOKUP('loanType',BankInfoTable,2,0)+'year started'
Grace period: vlookup
Already paid: Ok, this is a long one because it also recognizes grace period, but it works so won't write it down

Now everything works at first. It works perfectly, But when I try to sort it, or delete a loan that was already paid the data just show me #VALUE!# error and they get mixed up. I guess to many tables are involved and it doesn't know where to look anymore.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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