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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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
datadescription-valueYearmonthday
gas
electric
water
gas
electric

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]7-2-2016[/TD]

[TD="align: right"]122[/TD]
[TD="align: right"]94,86[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]02[/TD]
[TD="align: right"]07[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]7-12-2016[/TD]

[TD="align: right"]98[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]07[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]15-2-2017[/TD]

[TD="align: right"]99[/TD]
[TD="align: right"]56,87[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]02[/TD]
[TD="align: right"]15[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]20-2-2017[/TD]

[TD="align: right"]120[/TD]
[TD="align: right"]122,25[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]02[/TD]
[TD="align: right"]20[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]28-4-2017[/TD]

[TD="align: right"]147[/TD]
[TD="align: right"]134,57[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]04[/TD]
[TD="align: right"]28[/TD]

</tbody>
Blad10

#FFFFFF " >[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas#FFFFFF ;border-collapse: collapse; border-color: #BBB">[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]E2[/TH]
[TD="align: left"]=YEAR(A2)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]F2[/TH]
[TD="align: left"]=MONTH(A2)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G2[/TH]
[TD="align: left"]=DAY(A2)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]




Below a pivot table.

#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB">#DAE7F5 " />#DAE7F5 ;text-align: center;color: #161120">
KLMNO
Som van valueKolomlabels
RijlabelsEindtotaal
electric
2016
2017
gas
2016
2017
water
2017
Eindtotaal

<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>
[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]

[TD="align: right"]02[/TD]
[TD="align: right"]04[/TD]
[TD="align: right"]12[/TD]

[TD="align: center"]13[/TD]

[TD="align: right"][/TD]
[TD="align: right"]134,57[/TD]
[TD="align: right"]100,00[/TD]
[TD="align: right"]234,57[/TD]

[TD="align: center"]14[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]100,00[/TD]
[TD="align: right"]100,00[/TD]

[TD="align: center"]15[/TD]

[TD="align: right"][/TD]
[TD="align: right"]134,57[/TD]
[TD="align: right"][/TD]
[TD="align: right"]134,57[/TD]

[TD="align: center"]16[/TD]

[TD="align: right"]217,11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]217,11[/TD]

[TD="align: center"]17[/TD]

[TD="align: right"]94,86[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]94,86[/TD]

[TD="align: center"]18[/TD]

[TD="align: right"]122,25[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]122,25[/TD]

[TD="align: center"]19[/TD]

[TD="align: right"]56,87[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]56,87[/TD]

[TD="align: center"]20[/TD]

[TD="align: right"]56,87[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]56,87[/TD]

[TD="align: center"]21[/TD]

[TD="align: right"]273,98[/TD]
[TD="align: right"]134,57[/TD]
[TD="align: right"]100,00[/TD]
[TD="align: right"]508,55[/TD]

</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,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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