Different Vlookup formula into one formula

BEEALTAIR

New Member
Joined
Dec 5, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi,
I have 3 different calulations and i need to merge to get the highest value of them into a cell

These are the vlookup formulas i am using. Currently i am using MAX function to obtain the max value, but i need a single formula for this.
=SUM(D7*(VLOOKUP(D10,HSS:Sheet2!I2:I7,8,FALSE)))
=SUM(D8*(VLOOKUP(D10,HSS:Sheet2!J2:J7,9,FALSE)))
=SUM(F8*(VLOOKUP(D10,HSS:Sheet2!K2:K7,10,FALSE)))

Please let me know how to bring them into a single formula
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to the Board!

Note that the SUM function serves no purpose in your formula. You use that when adding up multiple values in a single formula.

How about:
Excel Formula:
=MAX(D7*VLOOKUP(D10,HSS:Sheet2!I2:I7,8,FALSE),D8*VLOOKUP(D10,HSS:Sheet2!J2:J7,9,FALSE),F8*VLOOKUP(D10,HSS:Sheet2!K2:K7,10,FALSE))
 
Upvote 0
Solution
Welcome to the Board!

Note that the SUM function serves no purpose in your formula. You use that when adding up multiple values in a single formula.

How about:
Excel Formula:
=MAX(D7*VLOOKUP(D10,HSS:Sheet2!I2:I7,8,FALSE),D8*VLOOKUP(D10,HSS:Sheet2!J2:J7,9,FALSE),F8*VLOOKUP(D10,HSS:Sheet2!K2:K7,10,FALSE))
Hi, Thank you so much, this worked. May i please know if i can make a formula deciding on the value of above code in another cell. So if the Max is this calculation then i need it to calculate something else. Please help
 
Upvote 0
Hi, Thank you so much, this worked. May i please know if i can make a formula deciding on the value of above code in another cell. So if the Max is this calculation then i need it to calculate something else. Please help
You should just be able drop that whole formula into your other calculation. There is no problem with imbedding calculations inside of other calculations in Excel.
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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