Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:53:35+00:00 2026-06-03T12:53:35+00:00

I have the following situation: I have a work sheet which contains a list

  • 0

I have the following situation:

I have a work sheet which contains a list of work with the estimated hours.
These hours can be assigned to users (listed in column D and E) using column C.
Now I want calculate the assigned hours per user in columns D E and F.

I am able to fill in the values for the not calculated fields using the following function:
I am using already the following functions (removed the $ sign for readability and I am using record 3 as example because it is not calculated)

  • Calculation for assigned hours : =IF(C3=D1;B3;0). So if the name of the user is equal to the name of the assigned user then the value will be used, otherwise 0.
  • Calculation for not assigned hours : =SUM(D3:E3) - B3. So if the assigned user does not exist in the columns then the hours are not assigned.
    • EDIT I have edited the calculation for not assigned hours. The previous version was:=IF(AND(C3<>D1; C3<>E1);B3;0)

These two calculations works fine but of course not for the calculated fields.

What I want to accomplish

Now I want to fill in the calculations on the question marks. This is easy if you know where the calculated fields are placed but that can be everywhere. So I need to have a function which does the following thing:

if: The value of columns B is calculated
then: calculate all values for the certain user until the next calculated row 
else: use one of the two calculations I have already described

Requested results using the sample sheet:

  • ?1?: SUM(D3;D6)
  • ?2?: SUM(E3;E6)
  • ?3?: SUM(F3;F6)
  • ?4?: SUM(D8;D9)
  • ?5?: SUM(E8;E9)
  • ?6?: SUM(F8;F9)

Example sheet

       A          B            C           D            E           F
1|   Tasks   |   Hours   |Assigned To|   User1   |   User2   |Not Assigned|
2|Main Task  |=SUM(A3:A6)|           |    ?1?    |    ?2?    |     ?3?    |
3|  Sub Task |    10     |   User1   |    10     |           |            |
4|  Sub Task |    25     |   User2   |           |    25     |            |
5|  Sub Task |    14     |   User2   |           |    14     |            |
6|  Sub Task |    17     |   User1   |    17     |           |            |
7|Main Task  |=SUM(A8:A9)|           |    ?4?    |    ?5?    |     ?6?    |
8|  Sub Task |    22     |   User2   |           |    22     |            |
9|  Sub Task |    43     |           |           |           |     43     |

Explanation:
Column A: Each sub task has one extra indent (using the indent button) in comparison with its parent task.

Column B: The value in this column will be calculated if the item contains subitems

Task 1        Calculated because contains subtasks (Task 1.1 and Task 1.2)
 Task 1.1     Calculated because contains subtasks (Task 1.1.1 and Task 1.1.2)
  Task 1.1.1  Not calculated because no subtasks
  Task 1.1.2  Not calculated because no subtasks
 Task 1.2     Not calculated because no subtasks
Task 2        Not calculated because no subtasks
Task 3        Calculated because contains subtasks (Task 3.1)
 Task 3.1     Not calculated because no subtasks

Column C: Only not calculated columns can be assigned to a user

Column D - E: The header contains the name of the user where tasks can be assigned to

Column F: Contains the not assigned hours per task

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:53:38+00:00Added an answer on June 3, 2026 at 12:53 pm

    You can determine which cells have formulas like so:

    Range formulaCells = range.SpecialCells(XlCellType.xlCellTypeFormulas);
    

    [Edit for VBA]

    You can create a User Defined Function like the one at Does Cell Have Formula from Excel VBA then use it like:

    =IsFormula(A1)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following situation which I can't figure out. I have a menu
I have following situation - Have a MongoService class, which reads host, port, database
I have the following situation. We want an reputation table to evaluate Users And
I have the following situation: An Conversations entity/table which has multiple Tags associated to
at work I am struggling a bit with the following situation: We have a
I have the following situation on my hands. In the project I work on
consider the following situation: In order to have lots of work processed at my
I have the following situation: Assembly A - Class library, contains my control Control
I have the following situation. In my C# application, I have a class which
Possible Duplicate: How does Copy-local work? I have following situation: there's a project named

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.