Anybody want to take a stab at this?
I'm helping a design team estimate their effort based on the details of the work coming in. The formula will be an INDEX COLLECT with some nested IF statements. Note that this is currently on a test sheet and in the end the formula will live on an overall tactic sheet with cross-sheet references to columns within a helper chart on a separate sheet. Here's what I have so far:
=IF(OR([Tactic status]@row = "Cancelled", [Tactic status]@row = "On hold"), 0, (IF([Project number]@row = "19-035", 0.5, (IF(OR([Design resource]@row = "Digital Services", [Design resource]@row = "N/A", [Media type]@row = "Non-production"), 0, (INDEX(COLLECT([Total hours]$1:[Total hours]$236, [Media type]$1:[Media type]$236, [Media type]@row, [Level of design/production]$1:[Level of design/production]$236, [Level of design/production]@row, [New or update]$1:[New or update]$236, [New or update]@row), 1)))))))
To summarize:
- if "Tactic status" = "Cancelled" or "On hold", show 0
- if "Project number" = "19-035", show 0.5
- if "Design resource" = "Digital Services" or "N/A", show 0
- if none of the above, pull the "Total hours" from the helper chart based on matching the following: "Media type", "Level of design/production", and "New or update"
This seems to be working so far but I need to add in an important piece that has me stumped. This is the "Number of pages/slides". This piece is ONLY needed when "Media type" is equal to "Print" or "PDF".
The issue here is that "Number of pages/slides" can be any number (maybe for this let's say anything from 0 to 100). So far with the helper chart I have expanded on all combinations (890 in total) up to the value of "24" as that's supposed to be the maximum
However we do have some rare occasions where that value could be anything, for example up to 200 if it's a massive piece of work. I'd like to avoid mapping out all combinations up to 200 pages/slides especially when it's so rarely needed. Is there a way I can say:
- if "Media type" <> "Print" or "PDF", do exactly as already stated in the formula above
- if "Media type" = "Print" or "PDF" and "Number of pages/slides" is <=24, give me the total hours according to all other matches as listed above
- if "Media type" = "Print" or "PDF" and "Number of pages/slides" is >24, consider it to equal 24 and match according to all other matches as listed above
I am aware that I could use a helper column in the data sheet to return a value of 24 for anything over 24 in the "Number of pages/slides" column. That would make life much easier! However, our team does not own this sheet and are trying to avoid asking to do so. We'll use it as a last resort but if anybody can help do this in a formula I'd be very grateful.