How to add a variable in my formula

PL dub

New Member
Joined
Oct 17, 2015
Messages
39
Good day,

I'm using the formula below in a cell of my Sheet1.

=COUNTIFS(DATA!E:E,">45", DATA!$A:$A,">=01/01", DATA!$A:$A,"<=01/31")


What it do,

In the sheet DATA, in Column A I have one row for each days of the year.

The formula will count the number of time I have a number higher than 45 in the column E for a specific month. In that example, January.

To avoid formula manipulation by end-users, I would like to replace the "45" by a cell (for instance G:2) wehre the end user could put the number he would like without formula manipulation.

I've try the following, but it didn't work.
=COUNTIFS(DATA!E:E,>G2, DATA!$A:$A,">=01/01", DATA!$A:$A,"<=01/31")

Any suggestion would be appreciate
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
The cell references needs to be joined the greater than sign
Code:
=COUNTIFS(data!E:E,">"&G2,....
 
Upvote 0

Forum statistics

Threads
1,224,043
Messages
6,176,046
Members
452,701
Latest member
rfhandel

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