Formula request

linga

New Member
Joined
Apr 5, 2014
Messages
40
Office Version
  1. 2013
Dear all,

Formula required:
if material has same price count should be 1 , if it has multiple price that count should be shown in result column.

[TABLE="width: 144"]
<colgroup><col style="width: 48pt;" span="3" width="64"> <tbody>[TR]
[TD="class: xl63, width: 64, bgcolor: #E6B8B7"]Material[/TD]
[TD="class: xl63, width: 64, bgcolor: #E6B8B7"]Price[/TD]
[TD="class: xl63, width: 64, bgcolor: #E6B8B7"]Result[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]X[/TD]
[TD="class: xl64, bgcolor: transparent"]2[/TD]
[TD="class: xl64, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]X[/TD]
[TD="class: xl64, bgcolor: transparent"]2[/TD]
[TD="class: xl64, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]X[/TD]
[TD="class: xl64, bgcolor: transparent"]2[/TD]
[TD="class: xl64, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]Y[/TD]
[TD="class: xl64, bgcolor: transparent"]1[/TD]
[TD="class: xl64, bgcolor: transparent"]3[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]Y[/TD]
[TD="class: xl64, bgcolor: transparent"]2[/TD]
[TD="class: xl64, bgcolor: transparent"]3[/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"]Y[/TD]
[TD="class: xl64, bgcolor: transparent"]3[/TD]
[TD="class: xl64, bgcolor: transparent"]3[/TD]
[/TR]
</tbody>[/TABLE]

Regards,
Linga
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Just so that we're clear, is the following scenario possible, and if yes, what do you want to do about it ?

Material..Price Result
Z...........1.......?
Z...........1.......?
Z...........2.......?
 
Upvote 0
Maybe...

Array formula in C2 copied down
=SUM(IF(FREQUENCY(IF($A$2:$A$7=A2,$B$2:$B$7),B$2:B$7),1))
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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