Need help on formula

purplelily

New Member
Joined
Sep 25, 2005
Messages
23
I apologise I do not know even how to begin to describe what I need to search for the formula I require (which I have always been doing, thanks to you all out here) and so here it is. I hope someone can help me with this formula.

I have two excel files or sheets:

The first one is where all my data is:
Person/Area Area1 Area2 Area3 Area4
PersonA green blue red yellow
PersonB red blue green yellow
PersonC yellow green red blue
PersonD yellow red blue green

I need a new excel sheet as follows:
Person/Color Red Blue Green Yellow
PersonA Area3 Area2 Area1 Area4
PersonB
PersonC
PersonD

What formula should I have in the second sheet in order to fill in the "Areas"?
Sorry, I don't know to present the above in table but only in text - every word (no space) is one cell.

Many thanks!!
pearlie
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try

Sheet1


A

B

C

D

E

1

Person/Area​

Area1​

Area2​

Area3​

Area4​

2

PersonA​

green​

blue​

red​

yellow​

3

PersonB​

red​

blue​

green​

yellow​

4

PersonC​

yellow​

green​

red​

blue​

5

PersonD​

yellow​

red​

blue​

green​

<TBODY>
</TBODY>



Sheet2

A
B
C
D
E
1
Person/Color​
Red​
Blue​
Green​
Yellow​
2
PersonA​
Area3​
Area2​
Area1​
Area4​
3
PersonB​
Area1​
Area2​
Area3​
Area4​
4
PersonC​
Area3​
Area4​
Area2​
Area1​
5
PersonD​
Area2​
Area3​
Area4​
Area1​

Formula in B2
=INDEX(Sheet1!$B$1:$E$1,MATCH(B$1,INDEX(Sheet1!$B$2:$E$5,MATCH($A2,Sheet1!$A$2:$A$5,0),0),0))

copy across and down

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,214,804
Messages
6,121,652
Members
449,045
Latest member
Marcus05

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