# SUMIF Returning Zero Value

#### denpkelly

##### New Member
I am attempting to sum trial balance amounts from one worksheet to another "consolidating" trial balance worksheet. I formula I am using is quite simple.:

=SUMIF('IKO PROD'!C8:C300,"*19002",'IKO PROD'!I8:I300)

In the consolidating trial balance worksheet for each asset, liability, revenue, or expense account I am asking Excel to read the second column of each plant's trial balance containing their chart of accounts, located a few tabs down from the consolidated TB worksheet in the same book. Accounts are ten characters in length, the criteria is defined to wild card the first five digits of the account and sum the corresponding account balance five columns over. The account number column has been formatted to general and the TB account balance, which contains sum formulas, is accounting or numeric. There are blank lines in the TB worksheet separating groupings of accounts.

I have gone online for hours attempting to find a solution, including removing additional spaces in the account number column to clean the sum range.

Regards,

Denis Kelly

### Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

#### gaz_chops

##### Well-known Member
Welcome to the forum.

Seems you are searching for Text against Numbers.

Try this entered as an array (Ctrl, Shift & Enter)

=SUM(IF(MID(C8:C300,6,99)="19002",(I8:I300)))

#### denpkelly

##### New Member
Should I be converting formats so that both worksheets reflect numerics? What is "MID" and the 6 & 99 in the array? Do not understand what is being structured in the argument. I am sorry for the delay in responding, I have been ill.
Welcome to the forum.

Seems you are searching for Text against Numbers.

Try this entered as an array (Ctrl, Shift & Enter)

=SUM(IF(MID(C8:C300,6,99)="19002",(I8:I300)))

#### denpkelly

##### New Member
By the way, use of your suggested formula returns a "Value" error. I am attempting to research.

#### AliGW

##### Banned
Did you enter it using CTRL+SHIFT+ENTER (not just enter)? If so, it will appear with curly brackets {} around it - does it?

Replies
1
Views
230
Replies
1
Views
156
Replies
0
Views
278
Replies
1
Views
252
Replies
9
Views
2K

1,191,553
Messages
5,987,240
Members
440,086
Latest member
Mahi786

### 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.

### Which adblocker are you using?

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

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