help with vlookup(ish) problem please?

fry

Active Member
Joined
Apr 25, 2007
Messages
411
Hi All

Sorry about the title, I didn't know how to explain :(

What I'm trying to do is a bit like vlookup but instead of returning 1 value I want to add up all the values???

My array is G7:M240 so what I need to do is look down column H and wherever a value is found (in this case Inbound or Outbound) I want to take the value on that row in column K and then add it to the rest to produce a sum of inbounds or outbounds?

Could someone help?

Thanks a lot! :)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi Bitmaster

Please don't hesitate, I'm old and befuddled!! It's been a while since I played with excel.
I'm still a bit unsure of the syntax though :(
 
Upvote 0
I tried...

SUMIF(G7:G240,"Inbound",K7:K240)

but it results in zero?? :(
 
Upvote 0
Try SUMPRODUCT like this

Excel Workbook
EFGHIJ
1PeopleValuesPeopleTotals
2John23John138
3Sarah45Sarah270
4Jack56Jack336
5John23
6Sarah45
7Jack56
8John23
9Sarah45
10Jack56
11John23
12Sarah45
13Jack56
14John23
15Sarah45
16Jack56
17John23
18Sarah45
19Jack56
Sheet3
 
Last edited:
Upvote 0
To work out the syntax, start typing "=SUMIF(" in the formula bar, but before hitting ENTER, hit the fx button just to the left of the formula bar, this brings up the information you need

In your case, try:
=SUMIF(H7:H240,"inbound",K7:K240)+SUMIF(H7:H240,"outbound",K7:K240)
 
Upvote 0
SUMIF(G7:G240,Inbound,K7:K240) is also zero and SUMIF(G7:M240,"Inbound",K7:K240) produces a sum of something, but not what I want???
 
Upvote 0
Ooops!!

Told you I was befuddled. Not sure why I used column G when it is clearly column H and I even asked that in my original question????

Time for one of my tablets!!

It does now work, so thank you very much baitmaster and I owe you a beer!!

:)
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,039
Members
448,940
Latest member
mdusw

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