Formula based on Cell content

Outdoorsman80

Board Regular
Joined
Oct 4, 2014
Messages
62
Office Version
  1. 365
Platform
  1. Windows
I have a spread sheet with several columns:
[TABLE="width: 683"]
<tbody>[TR]
[TD="class: xl68, width: 122"]Date Purchased[/TD]
[TD="class: xl67, width: 266"]Item[/TD]
[TD="class: xl67, width: 98"]Mint Year[/TD]
[TD="class: xl67, width: 69"]Type[/TD]
[TD="class: xl67, width: 76"]Metal[/TD]
[TD="class: xl67, width: 52"]Oz[/TD]
[/TR]
</tbody>[/TABLE]

The entries have 3 different Types: Coin, Ingot and Round. I want a formula that will query the entire table and show me how many coins I have. How can I do this? I'm wanting to show the results on another sheet.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Thank you for pointing me into the right direction, I was able to use countIf to could the amount of entries that were Silver.
Code:
=COUNTIF(E2:E2000,"Silver")

Now, what I need to do is calculate the weight of the silver items, I am stuck with that query. Here's what I tried, along with other formulas that got me no where:
Code:
=SUM(F2:F2000) * J3
I must have to have some sort of countif in there but am not sure.... Here's an example of the table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Date Purchased[/TD]
[TD]Item[/TD]
[TD]Mint year[/TD]
[TD]Type[/TD]
[TD]Metal[/TD]
[TD]Oz[/TD]
[/TR]
[TR]
[TD]12/1/16[/TD]
[TD]Silver Dollar[/TD]
[TD]2016[/TD]
[TD]Coin[/TD]
[TD]Silver[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12/2/16[/TD]
[TD]10oz Cooper Bar[/TD]
[TD]NA[/TD]
[TD]Ingot[/TD]
[TD]Copper[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]12/3/16[/TD]
[TD]2oz Gold Bar[/TD]
[TD]NA[/TD]
[TD]Ingot[/TD]
[TD]Gold[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]12/4/16[/TD]
[TD]Silver Dollar[/TD]
[TD]2017[/TD]
[TD]Coin[/TD]
[TD]Silver[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thank you, that makes sense now. If this were SQL I'd have a lot easier time. :) I think this will point me into the right direction.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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