Automatic breakdown of hours into columns
Answers
-
I just noticed that you have this twice in your formula
ISNUMBER($[Start Date]1)
Try changing it from ISNUMBER to ISDATE.
-
ok so I used this formula (see my previous comment, I've not noticed we changed to "ISNUMBER" test)
=IF($Position1 = "SS", IF(AND(ISNUMBER($[SS Hours]1), ISDATE($[Start Date]1), ISNUMBER($[Duration (months)]1), [Apr-20]$6 < $[End Date]1, [Apr-20]$6 >= $[Start Date]1), $[SS Hours]1 / $[Duration (months)]1, ""), IF($Position1 = "MO", IF(AND(ISNUMBER($[MO Hours]1), ISDATE($[Start Date]1), ISNUMBER($[Duration (months)]1), [Apr-20]$6 < $[End Date]1, [Apr-20]$6 >= $[Start Date]1), $[MO Hours]1 / $[Duration (months)]1, ""), ""))
and it still comes back as invalid operation. Should we add something else somewhere? Or am I missing properly closed condition (parentheses) somewhere?
-
@Paul Newcome or is it the spaces before/after signs like before ", before and after /, before and after <...? I am so lost.
-
What exactly is in [Apr-20]$6?
I Just now realized that row number is different. It looks like you are comparing it to a date, but if I am not mistaken, your [Apr-20] is a text/number type.
-
That is something I did not understand in Excel either, unfortunately.
I think I tried converting those values from $6 to "@row" but think it still didn't work. Now I tried converting all those values (including 1 and changing it to @row), but it says #UNPARSEABLE:
=IF(AND(ISNUMBER($[SS Hours]@row), ISDATE($[Start Date]@row), ISNUMBER($[Duration (months)]@row), [Apr-20]@row < $[End Date]@row, [Apr-20]@row >= $[Start Date]@row), $[SS Hours]@row / $[Duration (months)]@row, ""), IF(AND(ISNUMBER($[MO Hours]@row), ISDATE($[Start Date]@row), ISNUMBER($[Duration (months)]@row), [Apr-20]@row < $[End Date]@row, [Apr-20]@row >= $[Start Date]@row), $[MO Hours]@row / $[Duration (months)]@row, ""), ""))
I think the dollar sign means absolute value in Excel, tried deleting that too but it says #UNPARSEABLE :
=IF(AND(ISNUMBER([SS Hours]@row), ISDATE([Start Date]@row), ISNUMBER([Duration (months)]@row), [Apr-20]@row < [End Date]@row, [Apr-20]@row >= [Start Date]@row), [SS Hours]@row / [Duration (months)]@row, ""), IF(AND(ISNUMBER([MO Hours]@row), ISDATE([Start Date]@row), ISNUMBER([Duration (months)]@row), [Apr-20]@row < [End Date]@row, [Apr-20]@row >= [Start Date]@row), [MO Hours]@row / [Duration (months)]@row, ""), ""))
-
Yes, [Apr-20] onwards are all text/number formatted as I need numerical value there
-
But it has data that represents a date? Can you provide a screenshot that includes that cell along with the formula cell?
-
@Paul Newcome I am not sure if this helps, but I provide a sample with the formulas in excel that work. Please note lots of columns are hidden in the sheet, however, my intention is to apply the formula for the incoming projects, not the past ones.
Hopefully you'll get the idea of what I'm trying to achieve :) The data in [Apr-20] onwards should show average hours per month, my idea is to put the formula in my whole row so it autopopulates as in the excel sample I provided ( you can try to just change the hours, start date or duration and the numbers automatically change).
-
One of the differences (which I think is coming into play here) is that in Excel you can format individual cells whereas in Smartsheet you can only format on the column level. If you are trying to reference a date in a text/number column, then we will need to use a DATE function with MID/LEFT/RIGHT functions to get it into a formula as an actual date.
Can you show the SS in a screenshot that also includes the [Apr-20]$6 cell?
-
Is this what you mean?
I have a mock sheet where I'm just entering values in SS or MO to get us sorted :)
-
Exactly what does the date in [Apr-20]$6 look like? How is it formatted?
-
The [Apr-20] as well aas all columns onwards are formatted as number/text:
There is currently a numerical value in them inputted manually.
-
The bold portion in your formula below is why I am asking about that particular cell. You are trying to compare a number to a date. This is where the error is coming from.
=IF($Position1 = "SS", IF(AND(ISNUMBER($[SS Hours]1), ISDATE($[Start Date]1), ISNUMBER($[Duration (months)]1), [Apr-20]$6 < $[End Date]1, [Apr-20]$6 >= $[Start Date]1), $[SS Hours]1 / $[Duration (months)]1, ""), IF($Position1 = "MO", IF(AND(ISNUMBER($[MO Hours]1), ISDATE($[Start Date]1), ISNUMBER($[Duration (months)]1), [Apr-20]$6 < $[End Date]1, [Apr-20]$6 >= $[Start Date]1), $[MO Hours]1 / $[Duration (months)]1, ""), ""))
If you are trying to input a date into [Apr-20]$6 for comparison, then we need to figure out how exactly you are entering that date so that we can piece it together in a DATE function so that it can actually be used in the formula as a date.
mm/dd/yy
mm/dd/yyyy
dd/mm/yy
dd/mm/yyyy
dd-MON-yy
etc.
-
@Paul Newcome that's the thing, I am not trying to input a date into the [Apr-20] column or the ones afterwards. My intention is to have a numerical value there. So if I have a project that runs from 01 April 2020 to 31 March 2021 (12 months) and my budgeted hours in total for the project are 120, then I would like to have the [Apr-20] [May-20].....[March 21] to be automatically populated with number 10. So I would like the [Apr-20] etc column to have formulas there, so when I get a new project, I only enter the date, duration and budgeted hours, and the rest of the columns [Apr-20] etc will populate with a value obtained by division of budgeted hours/duration.
So I do not have to manually go into respective columns and drag fill them for the duration of the study, but that it will automatically calculate and populate, like in the sample Excel sheet I shared here:
Is there any way this would be possible??
-
I understand now what you mean, so my question now is whether something similar would be possible at all?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!