Date Value not working in formula

MrsFraser07

New Member
Joined
Aug 16, 2017
Messages
44
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi everyone! This is probably simple, but it has me stumped. Any suggestions are appreciated. Here's my formula:
=SUMIFS('AccuMap Dump'!$AH$3:$AH$241,'AccuMap Dump'!$M$3:$M$241,">=$K$1",'AccuMap Dump'!$N$3:$N$241,"<5",'AccuMap Dump'!$N$3:$N$241,">0")

$K$1 is a date (value is 1/1/2023) that is calculated from another date as: =DATE(YEAR('AccuMap Dump'!M1),MONTH('AccuMap Dump'!M1),1)

What I want the SUMIFS formula to do is sum the number of wells in column AH that are greater than or equal to 1/1/2023 (date that is calculated in $K$1). The formula works if I replace $K$1 with ">=1/1/2023" but I don't want to have to manually type that in each time I change my dataset. How do I get Excel to recognize the date value in $K$1?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
It should be ">="&$K$1 Otherwise it's looking for the text $K$1 rather than the cell value
 
Upvote 1
Solution
you could also bypass the K1 cell and use the formula from K1 like this:
Excel Formula:
=SUMIFS('AccuMap Dump'!$AH$3:$AH$241,'AccuMap Dump'!$M$3:$M$241,">="(DATE(YEAR('AccuMap Dump'!M1),MONTH('AccuMap Dump'!M1),1)),'AccuMap Dump'!$N$3:$N$241,"<5",'AccuMap Dump'!$N$3:$N$241,">0")
but i'd prolly just do as fluff pointed out
 
Last edited:
Upvote 0
you could also bypass the K1 cell and use the formula from K1 like this:
Excel Formula:
=SUMIFS('AccuMap Dump'!$AH$3:$AH$241,'AccuMap Dump'!$M$3:$M$241,">=(DATE(YEAR('AccuMap Dump'!M1),MONTH('AccuMap Dump'!M1),1))",'AccuMap Dump'!$N$3:$N$241,"<5",'AccuMap Dump'!$N$3:$N$241,">0")
but i'd prolly just do as fluff pointed out
Thanks! Your formula works except for one small change I made: ">="(DATE(YEAR('AccuMap Dump'!M1,MONTH('AccuMap Dump'!M1),1))
I moved the " from the end to after the = and it works great!
 
Upvote 0
It should be ">="&$K$1 Otherwise it's looking for the text $K$1 rather than the cell value
Thanks! Worked great. I knew I was missing something simple! I just couldn't see it. Thanks!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

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