SUMIF, VLOOKUP, and #N/A?

tiffanyfit3d

New Member
Joined
Oct 4, 2017
Messages
4
Hi all!

First time to the forum but I've got a doozy of a problem and can't seem to find any answers. Hoping you guys can help!

I have Table A with a bunch of invoice numbers and quantities. I have Table B that also has invoice numbers on it. There are some entries only in Table A, some only in Table B, and some in both. I need a formula that will sum the quantities of invoice numbers that are ONLY in Table A.

Example:

Table A
Inv#Qty
10653
10771
10835
10862

Table B
Inv#
1069
1077
1083
1090
Result: 5

I know that I could add a third column to Table A and do a vlookup and then sumif on #N/A but I want this to just be a template where I can paste my data and the result spits out.

Any thoughts?

Thanks in advance!

-Tiffany
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
your post was automoderated, and as such the system would have sent you an email to that effect. no one can repeat post
 
Upvote 0
Let A:B of Sheet1 house table 1 and A:A of Sheet2 table 2.

Somewhere convenient in Sheet1 run the following formula:

=SUMPRODUCT(--ISNA(MATCH($A$2:$A$5,Sheet2!$A$2:$A$5,0)),$B$2:$B$5)
 
Upvote 0
Let A:B of Sheet1 house table 1 and A:A of Sheet2 table 2.

Somewhere convenient in Sheet1 run the following formula:

=SUMPRODUCT(--ISNA(MATCH($A$2:$A$5,Sheet2!$A$2:$A$5,0)),$B$2:$B$5)

Ah yes! This works! Yay, thank you!

Is there any way to add extra conditionals? If I have Salesperson listed in Column C, can I make the formula only add up for an individual Salesperson as well?
 
Upvote 0
Ah yes! This works! Yay, thank you!

Is there any way to add extra conditionals? If I have Salesperson listed in Column C, can I make the formula only add up for an individual Salesperson as well?

Ok, so I figured out how to get my Salesperson conditional input. One LAST thing is that some of my Salesperson entries have multiple salespeople (i.e. "John", "Jane", "John/Jane") so I thought I would just be able to use asterisks to get both John and John/Jane to add up. This is the formula I thought should work but it is returning zero.

=SUMPRODUCT(--ISNA(MATCH($A$2:$A$5,Sheet2!$A$2:$A$5,0)),$B$2:$B$5,,--($C$2:$C$999="*John*")

Any thoughts?
 
Upvote 0
Ok, so I figured out how to get my Salesperson conditional input. One LAST thing is that some of my Salesperson entries have multiple salespeople (i.e. "John", "Jane", "John/Jane") so I thought I would just be able to use asterisks to get both John and John/Jane to add up. This is the formula I thought should work but it is returning zero.

=SUMPRODUCT(--ISNA(MATCH($A$2:$A$5,Sheet2!$A$2:$A$5,0)),$B$2:$B$5,,--($C$2:$C$999="*John*")

Any thoughts?

Perhaps...

=SUMPRODUCT($B$2:$B$999,--ISNA(MATCH($A$2:$A$999,Sheet2!$A$2:$A$5,0)),--ISNUMBER(SEARCH("john",$C$2:$C$999)))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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