Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SUM function with complications. Need help with formula.

Featured Replies

Let's see if anyone out there could help me out with this problem...


Let's say I was needing to sum up the total in column B.. Easy enough, huh? Well, if it were only that simple (which I am sure it is for most of the people reading this or I wouldn't be here).

Let's say the only cells in column B i wanted to add up were cells that contained a specific "Client Code" in column A.

Example:

|    A    |    B    || ABC100  | $500.00 || ZZZ900  | $100.00 || ABC100  | $200.00 || XYZ350  | $ 50.00 |

I am needing it to automatically add up all the #s in "B" that has the client code of ABC100. So that would be B1,B3, and to ignore the rest. Is there a formula that would allow me to do this?

Thanks in advance!

Edited by kbdavis


To do it you'll need a macro most likely:

- first you need to get unique value of col A

- for each unique value, find all line (j) of col A containing it and add the cell (j,B )

Another way is using the subtotal feature after sorting on Col A.

Edited by allen2

It's a long time since I used excel, but it sounds to me as if you need to use the SUMIF function.

Try this, based on your example and assuming ROW1 begins ABC100 and the currency symbols are added only as part of the cell format:

=SUMIF(A1:A4,"ABC100",B1:B4)

post-33618-0-89474500-1375794724_thumb.p

  • Author

It's a long time since I used excel, but it sounds to me as if you need to use the SUMIF function.

Try this, based on your example and assuming ROW1 begins ABC100 and the currency symbols are added only as part of the cell format:

=SUMIF(A1:A4,"ABC100",B1:B4)

attachicon.gifexample.png

That worked Perfectly!

Thank you very much.

I did make a very slight modification to the formula mentioned, using =SUMIF(A:A,"ABC100",B: B)

That helped out a lot!

Edited by Tripredacus
disabled emoticons

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.