Count multiples rows and ans in a single row and column

AFZAL SOHAIL

Board Regular
Joined
May 31, 2023
Messages
156
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Dear Team,

I am a sharing a data in which the count of product are in multiple rows , but I want to ans in a single row and column is as under:-

Count problems.jpg



Sr.No.ProductCountResultsExpected results
1Apples2Apples2Apples2
6Apples2Banana3
5Banana3Banana3Grapes2
9Banana3Mangoes2
11Banana3
3Grapes2Grapes2
4Grapes2
2Mangoes2Mangoes2
10Mangoes2
 
In that case perhaps you need to update your forum profile? Your profile shows that you have Excel versions 2021 and 2016, but neither of those versions has the HSTACK function.
You are right sir, I use in my office office 365, but mostly and in home i use office -2016,2021.
Kindly share a formula for these old version too.
Thanks in advance
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hello! This should help.
Book1
ABCDEFGHIJK
1Sr.No.ProductCountResultsExpected results
21Apples2Apples2Apples2Apples2
36Apples2Banana3Banana3
45Banana3Banana3Grapes2Grapes2
59Banana3Mangoes2Mangoes2
611Banana3
73Grapes2Grapes2
84Grapes2
92Mangoes2Mangoes2
1010Mangoes2
Sheet3
Cell Formulas
RangeFormula
J2:J5J2=UNIQUE(B2:B10)
K2:K5K2=COUNTIFS(B2:C10,J2)
Dynamic array formulas.
 
Upvote 0
You are right sir, I use in my office office 365, but mostly and in home i use office -2016,2021.
Then perhaps you should still update your profile to include 365 as well since you do use it at work. Then when you start a thread, make it clear which version or versions an answer needs to work in.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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