Sumifs with criteria as cell

Dhouse87

New Member
Joined
Feb 11, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I am unable to post an example at this time so I'll try to explain it

=Sumif(A9:A15, B9:B15,">="B1,"<="B7)

In B1:B7 is 1st, 2nd, 3rd, 4th, 5th, 6th, 7th
In B9:B15 is that same number format.
Ive tried just doing the numbers and it still didnt calculate.

Ive tried ">=&B1" and still nothin.
Ive tried browsing through the sumifs date thread and couldnt find anything
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I am unable to post an example at this time so I'll try to explain it

=Sumif(A9:A15, B9:B15,">="B1,"<="B7)

In B1:B7 is 1st, 2nd, 3rd, 4th, 5th, 6th, 7th
In B9:B15 is that same number format.
Ive tried just doing the numbers and it still didnt calculate.

Ive tried ">=&B1" and still nothin.
Ive tried browsing through the sumifs date thread and couldnt find anything
Also The criteria range has a formula within it too
 
Upvote 0
Show us what you see in the formula bar of one of the cells in B9:B15 and also what is in the formula bar for B1.
 
Upvote 0
Show us what you see in the formula bar of one of the cells in B9:B15 and also what is in the formula bar for B1.
B9:15contains =if(F49>0, Sheet2!A4, "")
B1 contains 1st
The =SUMIFS(A9:A15,B9:B15,">="&B1,B9:B15,"<="&B7) worked for criteria range that dose not have a formula within it
 
Upvote 0
Show us what you see in the formula bar of one of the cells in B9:B15 and also what is in the formula bar for B1.
B9:15contains =if(F49>0, Sheet2!A4, ""
B1 contains 1st
Ok to B1 is text so >1st is unlikely to work. So what's in Sheet2!A4 ?
That cell is blank blank for now but when that cell in sheet 2 is filled in it will fill others in
 
Upvote 0
You might need to consider whether the presentation trumps functionality
If you put 1st 2nd 3rd you have entered the numbers as Text. Once you do that then using the comparative operators > & < no longer work.
 
Upvote 0
You might need to consider whether the presentation trumps functionality
If you put 1st 2nd 3rd you have entered the numbers as Text. Once you do that then using the comparative operators > & < no longer work.
Ive tried just using numbers and it still wont recognize
 
Upvote 0
Both ranges need to have numbers in them for it to work.
One way of checking it is to change the Number format of both ranges from say General to Number with 2 decimal places. If nothing changes then they are text, if it changes to show 2 decimal places they are numbers and the formula should work.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,038
Members
449,092
Latest member
ikke

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