EXCEL - How do I find a cell with specific content, and then reference that CELL (not its content) in another formula? (example within)

MHoff

Ideally, I'd like to not delve into VBA with this, cuz I already am not the greatest with EXCEL. Here's my situation, and thank you in advance to anyone who can help!...

Each cell in Row 1 of a sheet called "workload" is an ascending date. So, A1 = 1/1/2016 - B1 = 1/2/2016 - C1 = 1/3/2016, etc...

Elsewhere in another sheet called "legend", I have this formula:

=COUNTIF(workload!$A$2:$AE$66,"some text string")

There are 65 rows of actual non-header data in "workload" (rows 2-66). This formula looks for all instances of "some text string" in any of the cells from A2-AE66 (all of my non-header data). This, in effect, gives me a "date range" (based on the headers in Row 1 described above) of 1/1/2016-1/31/2016 (31 columns traversed...31 days in that date range).

What I want to do is have two other cells somewhere that I can enter a START DATE and an END DATE. So, what I am looking for is a way to make my COUNTIF formula read like:

=COUNTIF(workload!$START_DATE_COLUMN$2:$END_DATE_COLUMN$66,"some text string")

If that is wholly confusing, a practical example would yield the effect of the following, if I entered "1/2/2016" into my START DATE cell and "1/15/2016" into my END DATE CELL:

=COUNTIF(workload!$B$2:$O$66,"some text string")

(because Column B has a value of "1/2/2016" in its header row [B2] and Column O has a value of "1/15/2016" in its header row [O2])

I hope that all made sense, and is possible! Thanks!

MHoff

This ended up working for me, FYI:

=COUNTIF(INDIRECT("'workload'!"&ADDRESS(1,MATCH(legend!A1,workload!1:1,0))&":"&ADDRESS(66,MATCH(legend!A2,workload!1:1,0))),"Red")

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

EXCEL Formula_How to do different things according to the content of the cell

From Dev

How do I find a specific cell within a cell array?

From Dev

Excel Max Formula Reference to another cell

From Dev

Evaluating the content of a cell for a formula

From Dev

I'm getting the formula instead of the cell content

From Dev

LibreOffice calc find string in cell if it is a formula reference to another cell

From Dev

Get cell by its content

From Dev

How do I associate/link a cell with another cell in Excel?

From Dev

How do I create a formula in excel that searches for a value in row, and then takes the value from another cell in that column?

From Dev

Excel: Remove only true cell content if its in a other cell

From Dev

Reference a cell as a string within a formula

From Dev

Javafx: how do I reference a particular cell within a row in setRowFactory?

From Dev

Javafx: how do I reference a particular cell within a row in setRowFactory?

From Dev

excel: how to *clone* the formula to another cell?

From Dev

How to blur a table cell within content editable

From Dev

Excel - If cell contains a certain string, then add content to another cell

From Dev

Excel-VBA macro to transform cell content into a comment of another cell

From Dev

OpenPyXL + How can I search for content in a cell in Excel, and if the content matches the search criteria update the content?

From Dev

OpenPyXL + How can I search for content in a cell in Excel, and if the content matches the search criteria update the content?

From Dev

Excel not display cell content

From Dev

Finding a reference to a cell in an excel formula

From Dev

I want to use a variable which contains a cell reference within a formula

From Dev

I want to use a variable which contains a cell reference within a formula

From Dev

Excel - using a cell reference on another sheet in a RAND formula

From Dev

How do I replace the content of an entire Pandas' cell with a string?

From Dev

How do I set the content of a label to a database table cell in WPF?

From Dev

How do I reference a specific cell in kendo grid with javascript?

From Dev

How do I create a formula that refers to cell references that are located in another cell?

From Dev

How do I dynamically change input cell in a formula based on the value in another cell in a spreadsheet?

Related Related

  1. 1

    EXCEL Formula_How to do different things according to the content of the cell

  2. 2

    How do I find a specific cell within a cell array?

  3. 3

    Excel Max Formula Reference to another cell

  4. 4

    Evaluating the content of a cell for a formula

  5. 5

    I'm getting the formula instead of the cell content

  6. 6

    LibreOffice calc find string in cell if it is a formula reference to another cell

  7. 7

    Get cell by its content

  8. 8

    How do I associate/link a cell with another cell in Excel?

  9. 9

    How do I create a formula in excel that searches for a value in row, and then takes the value from another cell in that column?

  10. 10

    Excel: Remove only true cell content if its in a other cell

  11. 11

    Reference a cell as a string within a formula

  12. 12

    Javafx: how do I reference a particular cell within a row in setRowFactory?

  13. 13

    Javafx: how do I reference a particular cell within a row in setRowFactory?

  14. 14

    excel: how to *clone* the formula to another cell?

  15. 15

    How to blur a table cell within content editable

  16. 16

    Excel - If cell contains a certain string, then add content to another cell

  17. 17

    Excel-VBA macro to transform cell content into a comment of another cell

  18. 18

    OpenPyXL + How can I search for content in a cell in Excel, and if the content matches the search criteria update the content?

  19. 19

    OpenPyXL + How can I search for content in a cell in Excel, and if the content matches the search criteria update the content?

  20. 20

    Excel not display cell content

  21. 21

    Finding a reference to a cell in an excel formula

  22. 22

    I want to use a variable which contains a cell reference within a formula

  23. 23

    I want to use a variable which contains a cell reference within a formula

  24. 24

    Excel - using a cell reference on another sheet in a RAND formula

  25. 25

    How do I replace the content of an entire Pandas' cell with a string?

  26. 26

    How do I set the content of a label to a database table cell in WPF?

  27. 27

    How do I reference a specific cell in kendo grid with javascript?

  28. 28

    How do I create a formula that refers to cell references that are located in another cell?

  29. 29

    How do I dynamically change input cell in a formula based on the value in another cell in a spreadsheet?

HotTag

Archive