Counting number of Times a number appears and depending on how many other numbers in the cell it receives a value.

Status
Not open for further replies.

daltendavis

New Member
Joined
Jun 26, 2018
Messages
37
For Example I would paste a list of values in A1 reading:[TABLE="width: 144"]
<colgroup><col></colgroup><tbody>[TR]
[TD]048 - 909[/TD]
[/TR]
[TR]
[TD]048 - 841[/TD]
[/TR]
[TR]
[TD]153[/TD]
[/TR]
[TR]
[TD]*014 - 022[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]879 - 719 - 102

On Sheet 2 I need it to read:
A B
[TABLE="width: 50"]
<tbody>[TR]
[TD]909[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]153[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]048[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]841[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]879[/TD]
[TD].33[/TD]
[/TR]
[TR]
[TD]719[/TD]
[TD].33[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD].33[/TD]
[/TR]
</tbody>[/TABLE]

Each Cell represents a Truck and the values a store.


So if there are 3 values in a cell they would receive .33 or a third of said Truck. If 2 values .5 or a half if a single value 1 and so on.

There will never be over 5 values in a single cell.​
[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
This has drove me nuts and I have tried everything I can think of :eeek:

Thank you for any and all help
 

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
Status
Not open for further replies.

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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