Multiple IF statements referencing another sheet
Hello,
I'm trying to create a formula that references data in another sheet and looks at multiple criteria from two columns: 1. the name of the person and 2. the entry falls between two dates, then I want to return the value from that sheet. Wondering if I need and IF(AND( formula? Here's what I have so far:
=IF({Auditor}, "Staff Name", IF({Date} >= DATE(2019, 4, 1), IF({Date} <= DATE(2019, 4, 6), {Audit#})))
Thanks!
Comments
-
Are you trying to pull specific data from the master sheet in reference to the Staff Name and Date ranges or are you trying to count how many occurrences there are?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Trying to pull specific data from a master sheet by referencing the name and date range. So if the entry was made by Person A and the same entry was made between these dates, put the cell value from column X (displayed on the same master sheet as the name and date range) on the sheet that has the formula. I hope that helps.
-
It does help.
What are the chances that Person A will have multiple entries within the specified date range?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
It is possible and likely.
-
Then you are going to want to use a JOIN/COLLECT statement. Something along the lines of...
=JOIN(COLLECT({Display Range}, {Person's Name Range}, "Person A", {Date Range}, AND(@cell <= DATE(2019, 4, 6), @cell >= DATE(2019, 4, 1))), " - ")
.
{Display Range}: Cross sheet reference of the column holding the data you are wanting to pull/display.
{Person's Name Range}: Same as above except referencing the column in the master sheet that contains the list of names.
"Person A": The person's name. A cell reference can also be used to avoid having to edit the formula for each individual.
{Date Range}: Cross Sheet reference of the column housing the dates.
" - ": Delimiter to separate multiple entries being displayed.
.
So if Person A entered "ABC" and "DEF" and "123" within the date range, it would be displayed as:
ABC - DEF - 123
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!