How do I pull the value of another cell for a formula?

VizIzMe

New Member
Joined
Jul 25, 2018
Messages
3
So here is my formula:

=SUMIFS('2018 Relief Oil Inv.'!$L:$L,'2018 Relief Oil Inv.'!$G:$G,"vape",'2018 Relief Oil Inv.'!$M:$M,">=7/6/18",'2018 Relief Oil Inv.'!$M:$M,"<=7/12/18")

My issue is I want the dates to be pulled from cell B1 and B2. When I type it as:

=SUMIFS('2018 Relief Oil Inv.'!$L:$L,'2018 Relief Oil Inv.'!$G:$G,"vape",'2018 Relief Oil Inv.'!$M:$M,">=B1",'2018 Relief Oil Inv.'!$M:$M,"<=B2")

it does not work and gives me a value of 0. I am wanting to be able to copy this formula into different columns and it pull from row 1 and 2 for dates so I dont have to manually change the date in the formula each time. Thanks for any help.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
try it this way...

=SUMIFS('2018 Relief Oil Inv.'!$L:$L,'2018 Relief Oil Inv.'!$G:$G,"vape",'2018 Relief Oil Inv.'!$M:$M,
">="&B1,'2018 Relief Oil Inv.'!$M:$M,"<="&B2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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