Looking for Counting formula

zahidrock

New Member
Joined
Jun 14, 2014
Messages
30
I have two sheet in one excel file, column A, B, C available on sheet 1 and F,G,H,I,J,K available on sheet two, i want to get count on sheet 2 G to K column, but on sheet1 A column have multiple name of one, so that i need to use it for Vlookup formula, but with Vlookup formula not give me counting on sheet2.

i also need one thing that when i put OUT on Sheet1 status column on that time i need to automatically remove that product on sheet2.

ohkdqv.jpg
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try to post the sample in a form that can readly be copied into Excel cells using one of these Excel jeanie, MrExcel HTML Maker or Borders-Copy-Paste.

NameProduct CodePriceName313-CW
313-B
1282-B385-CW1282-W
Network313-CW10000Network
Network313-CW10000Payel
Payel313-B10000Habib
Habib313-CW10000Apple
Apple1282-B10000Maa
Maa1282-B10000Liton
Habib313-CW10000Jonone
Habib385-CW10000LR
Liton385-CW10000
Liton1282-B10000
Jonone1282-W10000
LR1282-W10000
LR313-B10000

<colgroup><col><col><col><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks. What is the expected outcome for Payel by 313-CW?

not only 313-CW i want to get every of this and of course quantity
313-CW313-B1282-B385-CW1282-W

<tbody>
</tbody>
if you can please read details again, i hope on there you can understand that what i want .
 
Upvote 0
not only 313-CW i want to get every of this
313-CW
313-B
1282-B
385-CW
1282-W

<TBODY>
</TBODY>
if you can please read details again, i hope on there you can understand that what i want .

Try to answer the question please. Is it a count? If it's, what is the outcome for Payel/313-CW? Or is it a sum? If it's, what is the outcome?
 
Upvote 0
Try to answer the question please. Is it a count? If it's, what is the outcome for Payel/313-CW? Or is it a sum? If it's, what is the outcome?

yes i need count like this..
Name313-CW313-B1282-B385-CW1282-W
Network2
Payel1
Habib21
Apple1
Maa1
Liton11
Jonone1
LR11

<colgroup><col style="width:48pt" span="6" width="64"> </colgroup><tbody>
</tbody>

One more if sheet1 status column show "OUT" then it need to decrease
NameProduct Code
PriceStatus
Network313-CW10000out
Network313-CW10000
Payel313-B10000
Habib313-CW10000
Apple1282-B10000out
Maa1282-B10000
Habib313-CW10000
Habib385-CW10000out
Liton385-CW10000
Liton1282-B10000out
Jonone1282-W10000
LR1282-W10000out
LR313-B10000

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

after out added on status column result should be.

Name
313-CW313-B1282-B385-CW1282-W
Network1
Payel1
Habib20
Apple0
Maa1
Liton01
Jonone1
LR10

<colgroup><col style="width:48pt" span="6" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0
Let A:D house the data, F:K the processing.

G1, copy across and down:

=COUNTIFS($A:$A,$F2,$B:$B,G$1,$D:$D,"<>OUT")

Its working on same sheet, but i cant make it on two different sheet,

My data on Sheet1
NameProduct CodePriceStatus
Network313-CW10000Out
Network313-CW10000Out
Payel313-B10000
Habib313-CW10000
Apple1282-B10000
Maa1282-B10000Out
Habib313-CW10000
Habib385-CW10000
Liton385-CW10000Out
Liton1282-B10000Out
Jonone1282-W10000Out
LR1282-W10000
LR313-B10000

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

but i want result on Sheet2
Name313-CW313-B1282-B385-CW1282-W
Network00000
Payel01000
Habib20010
Apple00100
Maa00000
Liton00000
Jonone00000
LR01001

<colgroup><col style="width:48pt" span="6" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0
Its working on same sheet, but i cant make it on two different sheet,

My data on Sheet1
Name
Product Code
Price
Status
Network
313-CW
10000
Out
Network
313-CW
10000
Out
Payel
313-B
10000
Habib
313-CW
10000
Apple
1282-B
10000
Maa
1282-B
10000
Out
Habib
313-CW
10000
Habib
385-CW
10000
Liton
385-CW
10000
Out
Liton
1282-B
10000
Out
Jonone
1282-W
10000
Out
LR
1282-W
10000
LR
313-B
10000

<TBODY>
</TBODY>

but i want result on Sheet2
Name
313-CW
313-B
1282-B
385-CW
1282-W
Network
Payel
1
Habib
2
1
Apple
1
Maa
Liton
Jonone
LR
1
1

<TBODY>
</TBODY>

Sheet1, A:D, houses the data.

Sheet2, A:F, houses the set up for counting...

Sheet2, B2, copied across and down:

=COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,B$1,Sheet1!$D:$D,"<>OUT")
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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