Lookup for a specific text read array and return value to summary sheet

amolvijay

Board Regular
Joined
Nov 13, 2012
Messages
102
Office Version
  1. 365
Platform
  1. Windows
Dear Experts,
I have a big excel workbook comprising of sales data for various sales person. Each sales person's data is maintained in separate sheet in the master workbook. At the end of sales date worksheet have the detailed data for every sales person. I want to create a summary of detailed data from each sales person in a SUMMARY tab. Detailed data is located in same column for all the sales persons, however the row position is different depending upon the sales data.

Detailed Data for every sales person
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sale (Item A)[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]Sale (Item B)[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]Total Sales ($)[/TD]
[TD]1200[/TD]
[/TR]
</tbody>[/TABLE]

Expected summary
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Sale (Item A)[/TD]
[TD]Sale (Item B)[/TD]
[TD]Total Sales ($)[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]80[/TD]
[TD]90[/TD]
[TD]1200[/TD]
[/TR]
[TR]
[TD]Richard[/TD]
[TD]60[/TD]
[TD]70[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]800[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Something like this.


Excel 2013/2016
ABCD
1Sales PersonSale (Item A)Sale (Item B)Total Sales ($)
2John80901200
3Richard60701500
4Mike2040800
Sheet1
Cell Formulas
RangeFormula
B2=VLOOKUP($B$1,John!$A$1:$B$3,2,0)
B3=VLOOKUP($B$1,Richard!$A$1:$B$3,2,0)
B4=VLOOKUP($B$1,Mike!$A$1:$B$3,2,0)
C2=VLOOKUP($C$1,John!$A$1:$B$3,2,0)
C3=VLOOKUP($C$1,Richard!$A$1:$B$3,2,0)
C4=VLOOKUP($C$1,Mike!$A$1:$B$3,2,0)
D2=VLOOKUP($D$1,John!A1:B3,2,0)
D3=VLOOKUP($D$1,Richard!A2:B4,2,0)
D4=VLOOKUP($D$1,Mike!A3:B5,2,0)
 
Upvote 0
Solution
Thank you Sam_D_Ben. My DETAILED DATA in all the sheets is in the same column but row position is different. I wish a formula to read the Sales person name from Summary sheet and return the required sales data from individual DETAILED DATA.
 
Upvote 0
For example, you can change the rows in this formula

=VLOOKUP(
$B$1,John!$A$1:$B$3,2,0), if the data is in another row like A12:B15, you can edit it as =VLOOKUP($B$1,John!$A$12:$B$15,2,0)

This is just an example. You can edit the row.

 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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