lookup / index formula

hyd1956

New Member
Joined
Jun 26, 2020
Messages
49
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

Can anyone help with a formula which looks up the percentage value in column A sheet 2 against columns A and B in Sheet 1, then looks up column b sheet 2 against columns c and d sheet 1 and then displays the corresponding figure from column E?

Book1
AB
1 PercentageTotal
220.00%1
330.00%2500
440.00%2050
550.00%90000
660.00%100000
770.00%3000
880.00%750000
990.00%2000
10100.00%1000
Sheet2



Book1
ABCDEF
1Min PercentageMax PercentageMin NumberMax NumberCol1Col2
220%49%15000120.00
350001200000230.00
4200000199999999340.00
550%80%15000450.00
650001200000560.00
7200000199999999670.00
881%100%15000780.00
950001200000890.00
102000001999999999100.00
Sheet1


Any help would be great, I tried vlookups with name ranges but I couldn't get it to work. Thought it would be something like =IFERROR(IF(AND(A2>MInP,A2<MaxP),LOOKUP(2,1/((B2>=MinN)*(J2<=MaxN)),colone),""),"") but I could be miles off!

MinP =sheet1, column a
MaxP =sheet1, column b
MinN =sheet1, column c
MaxN =sheet1, column d
colone =sheet1, column e

Thank you
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi Dear,

I have difficulties in understanding the relationship between the values in sheet 1 and 2, and what formula was used in Column A in sheet 1

let us work it in this way; if the value is >20% and <49%, and as a number, it is >1 and <5000, what value should be retrieved from sheet 2 and why?

Best Regards
m.yusuf
 
Upvote 0
Does this do what you want?

hyd1956.xlsm
ABC
1 PercentageTotalResult
220.00%11
330.00%25001
440.00%20501
550.00%900005
660.00%1000005
770.00%30004
880.00%7500005
990.00%20007
10100.00%10007
Sheet2
Cell Formulas
RangeFormula
C2:C10C2=INDEX(Sheet1!E:E,MATCH(A2,Sheet1!A:A)+MATCH(B2,Sheet1!C$2:C$4)-1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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