converting input table to output table using formulas

SRana

New Member
Joined
Dec 5, 2018
Messages
3
Hi,

i have an input table which i want to convert to the output table using Dynamic Formulas/Functions.. Request help on this..

Input Table: (X1..X9 represent column headers)

X1X2X3X4X5X6X7X8X9
NQSelected L1NQL2NQL3NQNQNQ
L5L2NQSelected L1L4L6L3NQL7
L3NQL2L4NQL5Selected L1NQNQ
L3NQSelected L1L2NQL4NQL5NQ
L2L7Selected L1L3NQNQL4L5L6
L2NQSelected L1L3NQNQNQNQNQ
L4L3NQL2L5Selected L1NQNQNQ
Selected L1NQNQL3NQNQNQNQL2
L4NQL2Selected L1L3NQNQNQNQ
L2NQL5Selected L1L4L6NQL3NQ
L2NQNQSelected L1NQNQL3NQL4
L2NQNQL3NQSelected L1NQNQNQ

<colgroup><col><col span="3"><col><col span="2"><col><col></colgroup><tbody>
</tbody>


Output Table: Output table throws out results for count against each vendor for every field

VendorSelected L1L2L3L4L5L6L7NQ
X115221 1
X2111 18
X332 1 6
X44341
X5 121 8
X62 1112 5
X71 21 8
X8 1 2 9
X9 1 1 118

<colgroup><col><col><col span="6"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the forum.

As you may have noticed, COUNTIFS chokes on arrays. This will do it though. Copy the B16 formula across and down.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
ABCDEFGHI
1X1X2X3X4X5X6X7X8X9
2NQSelected L1NQL2NQL3NQNQNQ
3L5L2NQSelected L1L4L6L3NQL7
4L3NQL2L4NQL5Selected L1NQNQ
5L3NQSelected L1L2NQL4NQL5NQ
6L2L7Selected L1L3NQNQL4L5L6
7L2NQSelected L1L3NQNQNQNQNQ
8L4L3NQL2L5Selected L1NQNQNQ
9Selected L1NQNQL3NQNQNQNQL2
10L4NQL2Selected L1L3NQNQNQNQ
11L2NQL5Selected L1L4L6NQL3NQ
12L2NQNQSelected L1NQNQL3NQL4
13L2NQNQL3NQSelected L1NQNQNQ
14
15VendorSelected L1L2L3L4L5L6L7NQ
16X115221001
17X211100018
18X332001006
19X443410000
20X500121008
21X620111205
22X710210008
23X800102009
24X901010118
Sheet54
Cell Formulas
RangeFormula
B16=SUMPRODUCT(($A16=$A$1:$I$1)*($A$2:$I$13=B$15))
[/FONT]
 
Upvote 0
That's super. You're welcome.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

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