Searching and Sum with VLOOKUP, AND, IF

solo9999

Board Regular
Joined
May 23, 2011
Messages
82
Hi all,

I am working on a table which basically has three columns with list menus in their cells: Area (3 choices list menu), Type (two choices list menu) and Hours (12 choices list menu, 1-12). When filled out, it looks something like this:

AREA-TYPE-HOURS
ABC-AAA-5
DEF-BBB-3
ABC-AAA-4
GHI-AAA-8
DEF-AAA-5

So what I want to accomplish in the end is to do the following: Sum all AAA type of hours for all ABC Areas; Sum all BBB type of hours for all ABC areas... and so on. Basically an overview for each area wit the two types of hours summed up.

Is is going to be something with an IF(AND( statement within a VLOOKUP?

!Thanks!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
3 solutions:
The formulae in B11 and B16 can be copied across and down.
The pivot table (F1:J5) is the fastest way.

Excel Workbook
ABCDEFGHIJ
1AREATYPEHOURSSum of HOURSColumn Labels
2ABCAAA5Row LabelsABCDEFGHIGrand Total
3DEFBBB3AAA95822
4ABCAAA4BBB33
5GHIAAA8Grand Total98825
6DEFAAA5
7
8
9Summary Excel 2007 on:
10ABCDEFGHI
11AAA958
12BBB030
13
14Summary pre-Excel 2007:
15ABCDEFGHI
16AAA958
17BBB030
Sheet6
 
Upvote 0
Dear p45cal,

Thank you very much for this, it was exactly what I was looking for and much easier than I was initially trying to make it.

All best to you!!! :biggrin:
 
Upvote 0
Hi again,

Kind of an issue here with this. I used Excel 2007 but apparently the SUMIF is not available in 2003 which unfortunately I am still using @ work. What would be the 2003 version of this formula?

!Thanks!
 
Upvote 0
Hi again,

Kind of an issue here with this. I used Excel 2007 but apparently the SUMIF is not available in 2003 which unfortunately I am still using @ work. What would be the 2003 version of this formula?

!Thanks!

Sorry I completely ignored the bottom part of your post. The solution is already there once again than you very very much!
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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