=+sumif('absl new'!h:h,"7*",'absl new'!a:a)

jakobt

Active Member
Joined
May 31, 2010
Messages
337
Hi,

I have a table with accounts stating with numbers from 1-9.

I want to take a sumif of column h, off all accounts starting with 7. I have setup the following SUMIFS formula but it is not working:

=+SUMIF('ABSL NEW'!H:H,"7*",'ABSL NEW'!A:A)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Are the values in column H actually numbers, or text strings?
The wildcard will only work if the values are TEXT strings..

"*7" will not match an account that is 7123456
But it would match an account that is say 7123456A <- The A at the end makes it a TEXT string.

Is the account number a fixed length? Say 10 digits?
If so, you can do this
=SUMIFS('ABSL NEW'!A:A,'ABSL NEW'!H:H,">=7000000000",'ABSL NEW'!H:H,"<8000000000")
 
Upvote 0
Hi

You can use

=sumproduct(--(left('absl new'!h:h)="7"),'absl new'!a:a)

Remark: this type of formula will be more efficient if you use a range of rows instead of whole columns

If, for ex., you know that the data has less than 1000 rows you can use:

=sumproduct(--(left('absl new'!h1:h1000)="7"),'absl new'!a1:a1000)
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
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