Sumif / And Formula

yeoman99

New Member
Joined
May 25, 2018
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a data table as below. I wish to devise a formula to subtotal by Month (e.g. Jan 19) and Cost Type (e.g. Core) combined. For example Core Total for Jan 19 should be £4,742.

Can anyone please advise a SumIf / And formula to automate this in the 2nd table below.

Thanks, Neil

CoreCoreCoreCoreAdditionalAdditional
MonthOffshoreOnshoreWarehouseOfficeAd HocYard Rentals
Jan-19£2,371£4,485£990£2,215£660£30,000
Jan-19£2,371£5,256£990£2,000£660
Feb-19£300£4,485£990£3,000£660£30,000
Feb-19£3,000£6,382£990£3,552£660
Feb-19£2,371£500£990£3,961£660
Mar-19£2,235£7,154£990£2,215£660
Apr-19£2,371£4,485£990£2,215£660
May-19£2,371£4,485£990£3,961£660
May-19£2,371£5,552£990£2,215£660
May-19£2,371£4,485£990£2,215£660
Jun-19£3,001£5,552£990£3,961£660£30,000
Total£25,133£52,821£10,890£31,510£7,260£90,000
<colgroup><col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"> <col width="64" style="width: 48pt;" span="2"> <col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"> <col width="64" style="width: 48pt;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <tbody> </tbody>


Jan-19Feb-19Mar-19Apr-19May-19Jun-19
Core Totalxxxxxx
Additional Totalxxxxxx
<colgroup><col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"> <col width="64" style="width: 48pt;" span="2"> <col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"> <col width="64" style="width: 48pt;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" span="2"> <tbody> </tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
ABCDEFGROW 1
MonthOffshoreOnshoreWarehouseOfficeAd HocYard Rentalscol M
Jan-19£2,371£4,485£990£2,215£660£30,000
Jan-19£2,371£5,256£990£2,000£660
Feb-19£300£4,485£990£3,000£660£30,000row 5Offshoreb3:b13
Feb-19£3,000£6,382£990£3,552£660Onshorec3:c13
Feb-19£2,371£500£990£3,961£660Warehoused3:d13
Mar-19£2,235£7,154£990£2,215£660Officee3:e13
Apr-19£2,371£4,485£990£2,215£660Ad Hocf3:f13
May-19£2,371£4,485£990£3,961£660ROW 10Yard Rentalsg3:g13
May-19£2,371£5,552£990£2,215£660
May-19£2,371£4,485£990£2,215£660
Jun-19£3,001£5,552£990£3,961£660£30,000
Total£25,133£52,821£10,890£31,510£7,260£90,000
col I
a lookup table is used with indirect
row 21Jan-19offshore
£4,742
formula giving £4742
=SUMPRODUCT(($A$3:$A$13=$H$21)*(INDIRECT(OFFSET($M$4,MATCH(I21,$M$5:$M$10,0),1))))

<colgroup><col span="12"><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,470
Messages
6,124,992
Members
449,201
Latest member
Lunzwe73

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