Can I check values in two columns and all rows to add a conditional value?

sidgate

Here is what I am trying to do. I am entering a list of leaves in one sheet with To and From date values. Now given a date I want to find out whether there is a leave on that date. How can I do that?

For instance, I add following data in excel

Jack   | 1-Jan-2014  | 3-Jan-2014
Jill   | 15-Jan-2014 | 15-Jan-2014

Now I want to check whether Jill is on leave on 2nd Jan, how can I write a formula to check all the date ranges in two columns?

Now I am now trying to write a custom function to do that. But want to know whether we can do that OOTB.

maybeWeCouldStealAVan

Use COUNTIFS. This:

=COUNTIFS($B:$B,"<="&D2,$C:$C,">="&D2)

will tell you how many leaves contain the date in D2, where leaves start in column B and end in column C.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Displaying Rows conditional on values of two columns - R

From Dev

how can i check two columns while inserting values?

From Dev

How can I check if all rows have the same column value?

From Dev

How can I check for a value in a conditional array?

From Java

How do I query for all rows but limit by max values of two columns when 3rd column is of a specific value in one single query?

From Dev

How can I write an R script to check for straight-lining; i.e., whether, for any given row, all values in a set of columns have the same value

From Dev

How do I get rows with same values in 2 columns who match a condition and with a different value in the other two

From Dev

Check if two columns are equal for all rows per group

From Dev

Python Pandas: Check if all columns in rows value is NaN

From Dev

Select all rows where two columns contain a combination of values

From Dev

In Apache Spark how can I group all the rows of an RDD by two shared values?

From Dev

python value conditional on two columns

From Dev

How can i add new column with new values in it for all rows in SQL?

From Dev

Pandas: How can I check multiple columns if there are any values that are smaller than previous value?

From Dev

Select rows with maximum value where values in two columns are same

From Dev

Select records where all rows have same value in two columns

From Dev

Multiply the value in two columns and then sum the result of all rows?

From Dev

SQLAlchemy how to check if a value is between the values in two columns?

From Dev

Display all rows into two columns

From Dev

How can I display rows values in columns sql server?

From Dev

How can I group rows into columns with multiple values?

From Dev

How can I display rows values in columns sql server?

From Dev

How can I add rows and columns to a JavaFX 8 TableView

From Dev

Subsetting dataframe with values of two columns are equal to each other at same time, to check for zero at all other columns

From Dev

Check all table columns for a value

From Dev

How can I add two rows in a single pdf cell?

From Dev

How can I combine values from two columns?

From Dev

How can I remove array columns with all null values?

From Dev

Can I get a trimmed mean of all columns in a dataframe with nan values?

Related Related

  1. 1

    Displaying Rows conditional on values of two columns - R

  2. 2

    how can i check two columns while inserting values?

  3. 3

    How can I check if all rows have the same column value?

  4. 4

    How can I check for a value in a conditional array?

  5. 5

    How do I query for all rows but limit by max values of two columns when 3rd column is of a specific value in one single query?

  6. 6

    How can I write an R script to check for straight-lining; i.e., whether, for any given row, all values in a set of columns have the same value

  7. 7

    How do I get rows with same values in 2 columns who match a condition and with a different value in the other two

  8. 8

    Check if two columns are equal for all rows per group

  9. 9

    Python Pandas: Check if all columns in rows value is NaN

  10. 10

    Select all rows where two columns contain a combination of values

  11. 11

    In Apache Spark how can I group all the rows of an RDD by two shared values?

  12. 12

    python value conditional on two columns

  13. 13

    How can i add new column with new values in it for all rows in SQL?

  14. 14

    Pandas: How can I check multiple columns if there are any values that are smaller than previous value?

  15. 15

    Select rows with maximum value where values in two columns are same

  16. 16

    Select records where all rows have same value in two columns

  17. 17

    Multiply the value in two columns and then sum the result of all rows?

  18. 18

    SQLAlchemy how to check if a value is between the values in two columns?

  19. 19

    Display all rows into two columns

  20. 20

    How can I display rows values in columns sql server?

  21. 21

    How can I group rows into columns with multiple values?

  22. 22

    How can I display rows values in columns sql server?

  23. 23

    How can I add rows and columns to a JavaFX 8 TableView

  24. 24

    Subsetting dataframe with values of two columns are equal to each other at same time, to check for zero at all other columns

  25. 25

    Check all table columns for a value

  26. 26

    How can I add two rows in a single pdf cell?

  27. 27

    How can I combine values from two columns?

  28. 28

    How can I remove array columns with all null values?

  29. 29

    Can I get a trimmed mean of all columns in a dataframe with nan values?

HotTag

Archive