sumif? countif? i'm stuck

orsm6

Active Member
Joined
Oct 3, 2012
Messages
499
Office Version
  1. 365
Platform
  1. Windows
hi all.

is there a way to perform the following?

in range sheet 2 H22:H39 look for value Sheet3 B3 and if that value is between sheet 3 L11 and M11 return 1, otherwise return 0.
also, the values in these ranges are times formatted as h:mm


any help would be great.
thank you.

EDIT..... now I think about this, the look up will never work lol. the value to find will never be in the range to look up.
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
i assume no longer needed
but, if so
i'm not sure why you mention 2 sheets sheet2!h22:h39 and sheet3!L11:M11
the value is sheet3!B3

look for that value where ?
 
Upvote 0
Try this

=--(Sheet3!B3<(MAX(Sheet3!L11,Sheet3!M11))*(Sheet3!B3>(MIN(Sheet3!L11,Sheet3!M11))))
 
Upvote 0

Forum statistics

Threads
1,216,817
Messages
6,132,873
Members
449,763
Latest member
sameh_ag

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