Automation

bakeraj23

New Member
Joined
Jun 25, 2011
Messages
2
Hi,

This is what I am trying to do in excel.

Say my data is

Date Type Name Stock Sales Code

2004 Fruit Apple 5 -1 220
2004 Fruit Pear 6 3 221
2004 Fruit Grape 1 4 222
2004 Veg Carrot 5 -2 223
2004 Veg Potatoe 5 10 224
2004 Veg Pepper 2 4 225
2005 Fruit Apple 3 3 220
2005 Fruit Pear 2 2 221
2005 Fruit Grape 2 5 222
2005 Veg Carrot 4 -3 223
2005 Veg Potatoe 5 6 224
2005 Veg Pepper 2 2 225
2006 Fruit Apple 4 3 220
2006 Fruit Pear 6 -4 221
2006 Fruit Grape 2 2 222
2006 Veg Carrot 5 1 223
2006 Veg Potatoe 0 5 224
2006 Veg Pepper 2 3 225


My goal is to rank in separate tables, fruits and vegetables by stock value. Negative sales is when the store held stock and ordered more of the product but made no sales.

The table fields are:

Fruits
2006 Stock, Sales,
1
2
3


Vegetables
2006 Stock, Sales,
1
2
3

So, I need to create formulas that account for the first criteria, fruit or vegetable. Second, it needs to rank by stock quantity the names of the fruit (vegetable), and retrieve the necessary fields. I'm stuck because of the double criteria (date and fruit or veg).

Any help is appreciated.

Thank you.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Yes, I am using one right now. The only problem is there are some other calculations I need to do with the data. I want to be able to dump the data in a sheet then have all my fields fill automatically.

This is sort of vague I know.
 
Upvote 0
For the PT, take a look at calculated fields.

Or dump the data into a Table, add your formulas and then put it in a PT.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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