Mapping? -wondering if this is workable in Sumproduct/index/match?

Long Nose

Board Regular
Joined
Nov 19, 2007
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a question that I can't figure without adding additional columns to the data to match missing descriptions. I have a short list with cost and descriptions to apply to a larger list with codes that relate to the descriptions, yet the descriptions are not present in the larger list with the data codes. I want to sum the transaction days below. I realize I could add a column to the data, I just wanted to know if I can do it without adding any columns inserting the formula where "?".

Additionally, if I only want ZE and ALL from the data.

Apologies in advance for not knowing how to post a picture

TABLE 1

FLEET_BASE_SET......AVG........Transaction Days
ADRENALINE.............18..............?...[ANSWER HERE IS 20]
COMPACT..................9...............?...[ANSWER HERE IS 940]
CONVERTIBLE...........23..............?
DREAM.....................33..............?
MIDSIZE...................10..............?

TABLE 2

Mapping
CAR_CLASS.......CAR_GROUP
A......................COMPACT
A4.....................DREAM
A6.....................COMPACT
B.......................COMPACT
B4.....................ADRENALINE
B6.....................COMPACT
C.......................MIDSIZE
C4.....................MIDSIZE
C6.....................DREAM
D.......................MIDSIZE

DATA

DATA
BUCKET......RNT_BRD_CD......CAR_CLASS_CHARGED......DESCR...........REGION
ALL...............ZE..............................A.........................Days.................1,549
ALL...............ZE..............................A....................TRANSACTIONS.........326
ALL...............ZE..............................B..........................Days................2,145
ALL...............ZE..............................B....................TRANSACTIONS.........430
ALL...............ZE..............................C..........................Days..................856
ALL...............ZE..............................C.....................TRANSACTIONS.......130
ALL ZE D Days 268
ALL ZE D TRANSACTIONS 56
ALL ZE A4 Days 1,377
ALL ZE A4 TRANSACTIONS 222
ALL ZE A6 Days 255
ALL ZE A6 TRANSACTIONS 47
ALL ZE B4 Days 107
ALL ZE B4 TRANSACTIONS 20
ALL ZE B6 Days 868
ALL ZE B6 TRANSACTIONS 137
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Maybe something like this

Table 2 --> gray area
DATA --> light blue area


[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][td="bgcolor: #DCE6F1"]
C
[/td][td="bgcolor: #DCE6F1"]
D
[/td][td="bgcolor: #DCE6F1"]
E
[/td][td="bgcolor: #DCE6F1"]
F
[/td][td="bgcolor: #DCE6F1"]
G
[/td][td="bgcolor: #DCE6F1"]
H
[/td][td="bgcolor: #DCE6F1"]
I
[/td][td="bgcolor: #DCE6F1"]
J
[/td][td="bgcolor: #DCE6F1"]
K
[/td][td="bgcolor: #DCE6F1"]
L
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td]
FLEET_BASE_SET​
[/td][td]
AVG​
[/td][td]
Transaction Days​
[/td][td][/td][td="bgcolor:#D9D9D9"]
CAR_CLASS​
[/td][td="bgcolor:#D9D9D9"]
CAR_GROUP​
[/td][td][/td][td="bgcolor:#DCE6F1"]
BUCKET​
[/td][td="bgcolor:#DCE6F1"]
RNT_BRD_CD​
[/td][td="bgcolor:#DCE6F1"]
CAR_CLASS_CHARGED​
[/td][td="bgcolor:#DCE6F1"]
DESCR​
[/td][td="bgcolor:#DCE6F1"]
REGION​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
ADRENALINE​
[/td][td]
18​
[/td][td]
20​
[/td][td][/td][td="bgcolor:#D9D9D9"]
A​
[/td][td="bgcolor:#D9D9D9"]
COMPACT​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
1549​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td]
COMPACT​
[/td][td]
9​
[/td][td]
940​
[/td][td][/td][td="bgcolor:#D9D9D9"]
A4​
[/td][td="bgcolor:#D9D9D9"]
DREAM​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
326​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
CONVERTIBLE​
[/td][td]
23​
[/td][td]
0​
[/td][td][/td][td="bgcolor:#D9D9D9"]
A6​
[/td][td="bgcolor:#D9D9D9"]
COMPACT​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
2145​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td]
DREAM​
[/td][td]
33​
[/td][td]
222​
[/td][td][/td][td="bgcolor:#D9D9D9"]
B​
[/td][td="bgcolor:#D9D9D9"]
COMPACT​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
430​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
6
[/td][td]
MIDSIZE​
[/td][td]
10​
[/td][td]
186​
[/td][td][/td][td="bgcolor:#D9D9D9"]
B4​
[/td][td="bgcolor:#D9D9D9"]
ADRENALINE​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
C​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
856​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
7
[/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#D9D9D9"]
B6​
[/td][td="bgcolor:#D9D9D9"]
COMPACT​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
C​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
130​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
8
[/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#D9D9D9"]
C​
[/td][td="bgcolor:#D9D9D9"]
MIDSIZE​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
D​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
268​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
9
[/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#D9D9D9"]
C4​
[/td][td="bgcolor:#D9D9D9"]
MIDSIZE​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
D​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
56​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
10
[/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#D9D9D9"]
C6​
[/td][td="bgcolor:#D9D9D9"]
DREAM​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A4​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
1377​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
11
[/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#D9D9D9"]
D​
[/td][td="bgcolor:#D9D9D9"]
MIDSIZE​
[/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A4​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
222​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
12
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A6​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
255​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
13
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
A6​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
47​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
14
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B4​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
107​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
15
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B4​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
20​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
16
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B6​
[/td][td="bgcolor:#DCE6F1"]
Days​
[/td][td="bgcolor:#DCE6F1"]
868​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
17
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td="bgcolor:#DCE6F1"]
ALL​
[/td][td="bgcolor:#DCE6F1"]
ZE​
[/td][td="bgcolor:#DCE6F1"]
B6​
[/td][td="bgcolor:#DCE6F1"]
TRANSACTIONS​
[/td][td="bgcolor:#DCE6F1"]
137​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
18
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


Array formula in C2 copied down
=SUM(SUMIFS(L$2:L$17,K$2:K$17,"TRANSACTIONS",J$2:J$17,IF($F$2:$F$11=A2,E$2:E$11)))
Ctrl+Shift+Enter

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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