If function

BPM Aditya

New Member
Joined
Mar 15, 2010
Messages
12
Sheet1
A B C
1 City Fruit Price
2 Chennai Apple 100
3 Kolkata Mango 150
4 Mumbai Grapes 200
5 NewDelhi Papayya 250
6 Mumbai Apple 100
7 Kolkata Mango 200
8 NewDelhi Papayya 300
9 Chennai Grapes 400
10 Kolkata Apple 500
11 NewDelhi Grapes 400
12 Chennai Papayya 200
13 Mumbai Mango 300
14 Kolkata Mango 100
15 Mumbai Grapes 100

Sheet 2

A B C D
1 Mango Grapes Apple
2 Kolkatta
3 Chennai
4 NewDelhi
5 mumabi

Now I want to create a formula in sheet 2 so that the correspondant data in sheet1 is retrieved. The above 2 sheets are as example. The original sheets which I am having are huge in size, having almost 10600 rows and 100 colums. How can I retrieve the data by using formula. I have a little idea about the formula but dont know completely to finish it. Can any body help me?

The formula in cell B2 in sheet2, should be like this.. if 'Shee2'!A2 = 'Shee1'!A1:A15 and if 'Shee2'!B1 = 'Shee1'!B2:B15, the correspondant value in shee1 should be appear in B2 in sheet2.

I have tried IF, LOOKUP, VLOOKUP but it did not worked, because data length in shee1 and sheet2 are not same, cannot be aranged in ascending order. Moreover look up function cannot combine more than 2 orguments.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Taking Mangos in Kolkata:
1. Are there two cities? One called Kolkata, the other Kolkatta?
Make sure spelling corresponds; not only spelling, but make sure there aren't extra spaces before or after the name.
2. In sheet 1 there are 3 rows with Kolkat(t)a and Mangos. Each has a different price. Which one?
 
Upvote 0
Hi,

If this is your sample data on Sheet1?...


Excel Workbook
ABC
1CityFruitPrice
2ChennaiApple100
3KolkataMango150
4MumbaiGrapes200
5NewDelhiPapayya250
6MumbaiApple100
7KolkataMango200
8NewDelhiPapayya300
9ChennaiGrapes400
10KolkataApple500
11NewDelhiGrapes400
12ChennaiPapayya200
13MumbaiMango300
14KolkataMango100
15MumbaiGrapes100
Sheet1


What do you want on Sheet2?

Ak
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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