I have a large volume of data concerning transfers from and to various departments. There is a From Column and a To column plus an amount. What i’m attempting to do is create a Pivot table or other solution where the different rows offset when the From and Tos are the same, so if it’s A to B for 3 and B to A on the next row is for 2, the net transaction is 1 between them. There could be C to D and D to C, as well as A to D and D to A.
I’m not sure how to change the sign on one of them so I don’t get 5.
Any suggestions would be appreciated! TYIA
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Offsetting transfers
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Offsetting transfers
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago.
AuthorTopicWSTorquemada
AskWoody LoungerFebruary 11, 2015 at 11:24 am #498597Viewing 1 reply threadAuthorReplies-
RetiredGeek
AskWoody_MVPFebruary 11, 2015 at 1:35 pm #1489402Torquemada,
I don’t know about doing it with a pivot table but you can do it with SumIfs formulas as follows:
[noparse]=SUMIFS($C$2:$C$13,$A$2:$A$13,$E2,$B$2:$B$13,$F2)-SUMIFS($C$2:$C$13,$A$2:$A$13,$F2,$B$2:$B$13,$E2)[/noparse]
Using a setup like this:
39382-Torq1
Note: The above formula goes in cell G2 and as written if fully able to be filled down for as many combinations as you need. Of course you could also move columns E-G to another sheet and just change the formula to include sheet references.I’d also recommend replacing the Sum Range [noparse]$C$2:$C$13[/noparse] in the formula with a dynamic range name eliminating the need to ever change the cell references as you add data down the worksheet.
HTH :cheers:
Test File: 39384-Torq1
-
WSTorquemada
AskWoody Lounger -
WSTorquemada
AskWoody LoungerFebruary 20, 2015 at 1:20 pm #1491341Actually, this isn’t quite it. My example was probably off, and was missing a key ingredient.
The idea is that A ships to B 20 of product 1, then later B ships to A 6 of product 1. The net AB is 14 of product 1 between A and B. Or A to C and C to A. Or B to C and C to B, for products 1, 2, 3…n, and hundreds of As and Bs and Cs. So I’m trying to boil down the AB, AC, CB by product, with the kicker that the individual transaction records are all positive in quantity. It’s to create a financial adjustment summarizing opertations system details. We don’t need every transaction in the financials, just the net effect for a period.
Thanks again for the suggestion. I’m working on modifying it to do the above, but any ideas would be appreciated.
-
-
Maudibe
AskWoody_MVPFebruary 20, 2015 at 8:30 pm #1491482Torquemada,
See if this is what you are trying to do. The Net Qty (col K) is the sum of all the transactions for the specific product based on the direction shipped.
Cell K2 =SUMIF($A$2:$A$9,J2,$E$2:$E$9) and copy down which is adding the net values in a hidden column E for a specific product
Column E gets it values from the Qty shipped (col D) times 1 or -1 depending on the direction shipped
39492-Direction2
Cell E2 =IF(B2<C2,D2,-1*D2) and copy down. So if A to B, Column E will be Positive but from Column B to A, Column E will be negative. Same with AC or BC.When the positive and negative values in column E are added together for a specific product, a running total (Net Qty) can be kept for that product.
HTH,
Maud
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 10 finally gets fix
by
Susan Bradley
1 minute ago -
Revolutionary Strategies for Conserving Money: A Modern Male’s Guide to. (Awaiting moderation)
by
angelinahayward
39 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 hour, 21 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
5 hours, 54 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
14 hours, 25 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
15 hours, 14 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
5 hours, 14 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
10 hours, 39 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 2 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 6 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 6 hours ago -
Unable to eject external hard drives
by
Robertos42
9 hours, 54 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
6 hours, 14 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
11 hours, 31 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 10 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 13 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 16 hours ago -
Upgrade Sequence
by
doneager
2 days, 10 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
15 hours, 39 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 8 hours ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 13 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 15 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
14 hours, 24 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
7 hours, 55 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days, 5 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 12 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 14 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.