Sumup and lookup(5 way lookup)

aarky

New Member
Joined
Jan 29, 2020
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
if I select any thing in employee column and "All" in department column I should get the correct figure in sales column
if I select ravi in employee column and "MIS" in department column I should get the correct figure in sales column
for example if I select Arjun in employee column and in department "All" I should get the correct sales figure irrespective of their departments.
its like 4/5 way lookup
 

Attachments

  • sum and lookup.png
    sum and lookup.png
    95.3 KB · Views: 15

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,
Give this a try

Forum Sales.xlsx
ABCDEFGHIJKL
1EmployeeDepartmentSalesnamesdept
2RaviMIS57820AllAll
3MaheshAccounts45633RaviMIS
4ArjunMarketing89000MaheshAccounts
5RaviMIS57820EmployeeDepartmentSalesArjunMarketing
6MaheshAccounts45633AllAll555639Kriti
7ArjunMarketing77000Neha
8KritiMIS52300Vikram
9NehaAccounts36900
10ArjunAccounts45633
11VikramMarketing47900
12
Sheet1
Cell Formulas
RangeFormula
H6H6=IF(AND(F6="All",G6="All"),SUM(C2:C11),IF(F6="All",SUMIF(B2:B11,G6,C2:C11),IF(G6="All",SUMIF(A2:A11,F6,C2:C11),SUMPRODUCT($C$2:$C$11,($A$2:$A$11=$F6)*($B$2:$B$11=G$6)))))
 
Upvote 1
Solution

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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