Need formula help

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi everyone,

Thanks in advance for the help. I created a small example of a work issue we are having. Hopefully someone can help. I need to get the total of column C if column A has 1111 at the left (will always be 4 characters) and if column B is greater than 0. Struggling to figure this out.


1694554212028.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi easybpw,

I think there is some missing information. "Total of column C." A sum of all the values? A sum of those with "1111" in column A?

In any case, maybe the following will get you headed the right direction.
Book_2023-09-10.xlsm
ABCD
1Test1Test2test2Results
21111-245656922322232
31111-23458510001000
41598-85200258 
51111-22220555 
Sheet9
Cell Formulas
RangeFormula
D2:D5D2=IF(AND(LEFT(A2,4)="1111",B2>0),C2,"")


Hope that helps,

Doug
 
Upvote 0
Perhaps this:

Excel Formula:
=SUMPRODUCT(--(LEFT($A$2:$A$4,4)="1111"),--($B$2:$B$4>0),$C$2:$C$4)

And you can change the "1111" to be a cell reference if you need to change the beginning numbers of column A.
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,752
Members
449,186
Latest member
HBryant

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