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
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I requested to Moderator please help me/guide me..
Thanks in advance pl.
 
Upvote 0
What is the reason in my thread so no any expert ans my query?
Probably because you have two sets of data and expected results and they seem quite different to each other. So people probably don't know what the format of your data is or what results you actually want.
 
Upvote 0
Hello! Do you need to calculate the number of products? Or display the unique names of the products? Because nothing is clear from your post.
 
Upvote 0
I need to count unique names of the product and against their count:
e.g. Apple = 2
Banas = 3

with a single formula
 
Upvote 0
Thanks a lot sir,
It is working very well.
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.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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