Formula help request - VLookup I think?

Cristinky420

New Member
Joined
Feb 13, 2019
Messages
17
Good day Excel Gurus!

I'm looking for help developing two formulas, and it seems like it needs more components than I'm used to working with.

I have the following:

  • Defined name: Sheetlist = CSC:Lists!$A:$I
  • Column A in Sheetlist has Dates (dd-MMM-yyyy)
  • Column B in Sheetlist is blank or has a value of "x"
  • Column H in Sheetlist is time (hh:mm)

On the sheet I would like the formula to be on:
  • B3 = start date
  • B4 = end date

I would like to count and sum across rows
  1. formula to count if Sheetlist:Column B = "x" AND if Sheetlist:Column A = between start date and end date
  2. formula to sum Sheetlist:Column H (time) if Sheetlist:Column B = "x" AND if Sheetlist:Column A = between start date and end date

Oh I hope this makes sense! Thank-you to all who can help!
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Something like this?
Excel Workbook
ABCDEF
1
2
3Start3/7/2019Count7Sum10:55
4End5/18/2019
5
6DatesHour
71/5/2019x1:00
81/18/20194:00
92/7/20192:25
102/28/20195:00
113/4/2019x1:00
123/15/2019x13:00
133/24/20196:30
143/26/2019x1:30
154/2/20195:00
164/5/2019x1:00
174/12/2019x1:00
184/19/2019x16:25
195/2/201913:00
205/10/2019x1:00
215/18/2019x1:00
225/26/201913:00
236/1/20196:30
246/11/2019x1:00
Sheet
 
Upvote 0
I think what you need are SUMIFS and COUNTIFS.

COUNTIFS(sheetlist!B:B, "=x",sheetlist!A:A, ">sheetlist!B3",sheetlist!A:A, "<sheetlist!B4")+ "do the same for B is blank"
 
Upvote 0
Thanks for the heads up folks, I thought it should be CountIfs and SumIfs... but somehow my research kept taking me to Vlookup.

I'm working with a number of sheets here. Sheetlist is my defined name for a range of sheets that are CSC:Lists! and data to be "searched" is in columns A:H on those sheets. There's almost 100 sheets in the range.

So far I have this:

=COUNTIFS((INDIRECT("'"&Sheetlist&"'!A:A")),">="&DATEVALUE($B$3),(INDIRECT("'"&Sheetlist&"'!A:A")),"=<"&DATEVALUE($B$4),(INDIRECT("'"&Sheetlist&"'!B:B")),"=x")

I'm getting #VALUE


Ugh I'm so confused.
 
Last edited:
Upvote 0
Okay...
So i figured out formulas that work if I just use 1 sheet.

=COUNTIFS('0005'!A5:A1000,">="&B3,'0005'!A5:A1000,"<="&B4,'0005'!B5:B1000,"x")

=SUMIFS('0005'!I5:I1000,'0005'!A5:A1000,">="&B3,'0005'!A5:A1000,"<="&B4,'0005'!B5:B1000, "x" )

Now...

How do I make it so instead of calculating from just one sheet, it scans a dynamic range of sheets?
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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