Help with formulas

joakimh

New Member
Joined
Nov 7, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Dear all!
I need help with some formulas.

See attached picture below

Orange area (Rows A-D) contains an export from my bank with all payments I have done.
Row E will be categories which I will make myself.

Yellow area (row H and I) will be total amount of each category during the year..
This one works using following formula: =SUM.IF(E2:E50; H2&"*"; D2:D50)

But the last green area (Row K-V) is my problem.
I made an exemple how I would like to have it, but I need help with formulas.

Here I would to take the total montly amount of each category and month and place it in each month.
I guess I need to do some SUMIF as well, but I cant get it to work?!

1699350688773.png


Please help :)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Since you haven't specified how you have put months on top, so I'm giving you example for January only and you can improvise, But there can be a dynamic way of dong same...

Excel Formula:
=SUMIFS(D:D,E:E,$H2,A:A,">="&Date(2023,1,1),A:A,"<="&Date(2023,1,31))
 
Last edited:
Upvote 0
The dynamic way is to use Formula in Cell K1

Excel Formula:
=DATE(2023,SEQUENCE(1,12,1,1),1)

Book1
KLMNOPQRSTUV
1JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Sheet1
Cell Formulas
RangeFormula
K1:V1K1=DATE(2023,SEQUENCE(1,12,1,1),1)
Dynamic array formulas.


Formatting cells from K1 onwards as "mmmm"

And then use -

Excel Formula:
=SUMIFS(D:D,E:E,$H2,A:A,">="&K$1,A:A,"<="&Eomonth(K$1,0))
 
Upvote 0
Dear all!
I need help with some formulas.

See attached picture below

Orange area (Rows A-D) contains an export from my bank with all payments I have done.
Row E will be categories which I will make myself.

Yellow area (row H and I) will be total amount of each category during the year..
This one works using following formula: =SUM.IF(E2:E50; H2&"*"; D2:D50)

But the last green area (Row K-V) is my problem.
I made an exemple how I would like to have it, but I need help with formulas.

Here I would to take the total montly amount of each category and month and place it in each month.
I guess I need to do some SUMIF as well, but I cant get it to work?!

View attachment 101580

Please help :)


Since you haven't specified how you have put months on top, so I'm giving you example for January only and you can improvise, But there can be a dynamic way of dong same...

Excel Formula:
=SUMIFS(D:D,E:E,$H2,A:A,">="&Date(2023,1,1),A:A,"<="&Date(2023,1,31))
Here is an exmple file: Excel Help Forum
Couldnt ge tthe "upload mini-sheet" to work
 
Upvote 0
The dynamic way is to use Formula in Cell K1

Excel Formula:
=DATE(2023,SEQUENCE(1,12,1,1),1)

Book1
KLMNOPQRSTUV
1JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Sheet1
Cell Formulas
RangeFormula
K1:V1K1=DATE(2023,SEQUENCE(1,12,1,1),1)
Dynamic array formulas.


Formatting cells from K1 onwards as "mmmm"

And then use -

Excel Formula:
=SUMIFS(D:D,E:E,$H2,A:A,">="&K$1,A:A,"<="&Eomonth(K$1,0))

My months was jused typed in manually. no formula :)
But now when I tried using your =DATE(2023,SEQUENCE(1,12,1,1),1) , then it says the standard error "there is a problem using this formula..."

is it becuase of a swedish Excel version?
 
Upvote 0
My months was jused typed in manually. no formula
Try this -

Excel test.xlsx
ABCDEFHIJKLMNOPQRSTUV
1DateSpecificationLocationAmmountCategoryCategoryYearly costJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
27/7/23Storenamne X on billNew york39.00RestaurantsRestaurants289 kr0.00250.000.000.000.000.0039.000.000.000.000.000.00
31/30/23Storenamne Y on billBerlin101.00ClothesShopping online100 kr99.990.000.000.000.000.000.000.000.000.000.000.00
42/10/23Storenamne Z on billLondon100.00RestaurantsClothes101 kr101.000.000.000.000.000.000.000.000.000.000.000.00
58/22/23Storenamne A on billStockholm32.00StreamingHouse Expense495 kr0.000.000.00495.450.000.000.000.000.000.000.000.00
61/3/23Storenamne B on billWWW.AMAZON.COM99.99Shopping onlineCar86 kr85.790.000.000.000.000.000.000.000.000.000.000.00
74/3/23Storenamne C on billParis495.45House expenseTelephone extense99 kr0.000.000.000.000.000.000.000.000.000.000.000.00
82/3/23Storenamne 1 on bill633-2321-04344399.00Telephone expenseStreaming32 kr0.000.000.000.000.000.000.0032.000.000.000.000.00
91/4/23Storenamne 2 on billIRVINE85.79Car0.000.000.000.000.000.000.000.000.000.000.000.00
Blad1
Cell Formulas
RangeFormula
K1:V1K1=DATE(2023,SEQUENCE(1,12,1,1),1)
K2:V9K2=SUMIFS($D:$D,$E:$E,$H2,$A:$A,">="&K$1,$A:$A,"<="&EOMONTH(K$1,0))
I2:I3,I5:I6I2=SUMIF(E2:E892, H2&"*", D2:D892)
Dynamic array formulas.
 
Upvote 0
Try this -

Excel test.xlsx
ABCDEFHIJKLMNOPQRSTUV
1DateSpecificationLocationAmmountCategoryCategoryYearly costJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
27/7/23Storenamne X on billNew york39.00RestaurantsRestaurants289 kr0.00250.000.000.000.000.0039.000.000.000.000.000.00
31/30/23Storenamne Y on billBerlin101.00ClothesShopping online100 kr99.990.000.000.000.000.000.000.000.000.000.000.00
42/10/23Storenamne Z on billLondon100.00RestaurantsClothes101 kr101.000.000.000.000.000.000.000.000.000.000.000.00
58/22/23Storenamne A on billStockholm32.00StreamingHouse Expense495 kr0.000.000.00495.450.000.000.000.000.000.000.000.00
61/3/23Storenamne B on billWWW.AMAZON.COM99.99Shopping onlineCar86 kr85.790.000.000.000.000.000.000.000.000.000.000.00
74/3/23Storenamne C on billParis495.45House expenseTelephone extense99 kr0.000.000.000.000.000.000.000.000.000.000.000.00
82/3/23Storenamne 1 on bill633-2321-04344399.00Telephone expenseStreaming32 kr0.000.000.000.000.000.000.0032.000.000.000.000.00
91/4/23Storenamne 2 on billIRVINE85.79Car0.000.000.000.000.000.000.000.000.000.000.000.00
Blad1
Cell Formulas
RangeFormula
K1:V1K1=DATE(2023,SEQUENCE(1,12,1,1),1)
K2:V9K2=SUMIFS($D:$D,$E:$E,$H2,$A:$A,">="&K$1,$A:$A,"<="&EOMONTH(K$1,0))
I2:I3,I5:I6I2=SUMIF(E2:E892, H2&"*", D2:D892)
Dynamic array formulas.


thanks for quick replies, really appricated!

still problem, is below

1699352086461.png
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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