Hi,
I have got a query in excel lookup.
(i wish here an option should be there to upload file for better clarity)
i need to lookup data with database and i need buckets for it.
eg:
[pre]
[/pre]
should give: India 1 to 3; Jordan 0 to 4; UAE 1 to 3 in each corresponding cells of respective country.
I have got a query in excel lookup.
(i wish here an option should be there to upload file for better clarity)
i need to lookup data with database and i need buckets for it.
eg:
[pre]
Code:
Database:
India 1 3 12 30 50 100 500 1000
Jordan 1 3 12 30 50 100 500 1000
UAE 1 3 12 30 50 100 500 1000
now:
India 1
Jordan 2
UAE 3
should give: 1 to 3 for each country because it falls between 1 and 3
Similarly if we enter 10 it should give 3 to 12. Data is huge and weekly.
My friend has given a complicated IF and Vlookup formula but i think there should be a better way. Also - bucketing should be dynamic w.r.t. database i.e. if we change Jordan - their bucketing should automatically change - Eg.
Revised Database:
India 1 3 12 30 50 100 500 1000
Jordan 0 4 12 30 50 100 500 1000
UAE 1 3 12 30 50 100 500 1000
now:
India 1
Jordan 2
UAE 3
should give: India 1 to 3; Jordan 0 to 4; UAE 1 to 3 in each corresponding cells of respective country.