need formula help in Excel 2010

L

Legacy 410705

Guest
I have a spreadsheet set up as:

date utility units used cost

7/2/2016 gas 122 $94.86
7/12/2016 electric 98 $100.00
2/15/2017 water 99 $56.87
2/20/2017 gas 120 $122.25
4/28/2017 electric 147 $134.57

I would like to extract say all "gas" with units and organize them by date in another part of the spreadsheet so I can graph units against year. Ie. all gas sorted by year with total units. Is this possible? Is thee some other way to do this? My old "123" program had a function to do this. Thanks for any help.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Use the filter function on the Data Tab. Filter on the item Gas and then copy and paste to a new location. Clear the filter.
 
Upvote 0

Book1
ABCDEFG
1datadescription-valueYearmonthday
27-2-2016gas12294,8620160207
37-12-2016electric9810020161207
415-2-2017water9956,8720170215
520-2-2017gas120122,2520170220
628-4-2017electric147134,5720170428
Blad10
Cell Formulas
RangeFormula
E2=YEAR(A2)
F2=MONTH(A2)
G2=DAY(A2)



Below a pivot table.


Book1
KLMNO
10
11Som van valueKolomlabels
12Rijlabels020412Eindtotaal
13electric134,57100,00234,57
142016100,00100,00
152017134,57134,57
16gas217,11217,11
17201694,8694,86
182017122,25122,25
19water56,8756,87
20201756,8756,87
21Eindtotaal273,98134,57100,00508,55
Blad10
 
Last edited:
Upvote 0
#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB">
ABCDEFG
1datadescription-valueYearmonthday
27-2-2016gas12294,8620160207
37-12-2016electric9810020161207
415-2-2017water9956,8720170215
520-2-2017gas120122,2520170220
628-4-2017electric147134,5720170428

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Blad10

#FFFFFF " >
Worksheet Formulas#FFFFFF ;border-collapse: collapse; border-color: #BBB">
CellFormula
E2=YEAR(A2)
F2=MONTH(A2)
G2=DAY(A2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>




Below a pivot table.

#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB">#DAE7F5 " />#DAE7F5 ;text-align: center;color: #161120">
KLMNO
10
11Som van valueKolomlabels
12Rijlabels020412Eindtotaal
13electric134,57100,00234,57
142016100,00100,00
152017134,57134,57
16gas217,11217,11
17201694,8694,86
182017122,25122,25
19water56,8756,87
20201756,8756,87
21Eindtotaal273,98134,57100,00508,55

<colgroup><col style="width: 25pxpx" https:="" www.mrexcel.com="" forum="" usertag.php?do="list&action=hash&hash=DAE7F5"" target="_blank"></colgroup><colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
#DAE7F5 ;color: #161120">Blad10

Thanks Oeldere for your your help. I'll see if I can work it out. I thought I needed IF statements. I appreciate all the help.

oldguy2
 
Upvote 0

Forum statistics

Threads
1,216,178
Messages
6,129,326
Members
449,501
Latest member
Amriddin

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