SUMIFS only if Column contains a number

Gesyca_is_joy

Board Regular
Joined
Apr 24, 2014
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a formula that adds the total calue of Invoices which meet several criteria. One particular Column (K) with either be blank, hold a text value or hold a number that has special formatting to always be 6 digits long.

I have this formula working for all but one variation where the column K is a number; i tried using ISNUMBER but It isn't working.

BaseFormula: =(SUMIFS(Invoices!$F$1:$F$4994,Invoices!$H$1:$H$4994,'Chart of Accounts'!$A3,Invoices!$K$1:$K$4994,"=",Invoices!$M$1:$M$4994,"="))
Explanation: Sum the values of cells in column F if the values in Column H equal the pertinent Cell in Column A of another Sheet, AND if Column K is blank AND if Column M is blank.
I have made variations of this wherein Column K will have a specific text value (i.e. "REJECTED") successfully, but now I need to edit this formula to function if Column K has a numeric value in it; however that column is formatted as "Special" because i enter a 3 digit number and it will automatically add the 3 leading zeros to equal a 6 digit number.

Unsure of how to proceed?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try

=(SUMIFS(Invoices!$F$1:$F$4994,Invoices!$H$1:$H$4994,'Chart of Accounts'!$A3,Invoices!$K$1:$K$4994,">0",Invoices!$M$1:$M$4994,"="))
 
Upvote 0
Welp....that should have been obvious....thank you for the help! Worked like a charm. Now i will go crawl back to my desk and bang my head on it a few times for overthinking before I've completed by requisite pot of coffee...

Cheers!
 
Upvote 0

Forum statistics

Threads
1,214,625
Messages
6,120,598
Members
448,973
Latest member
ksonnia

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