total field

deb

Active Member
Joined
Feb 1, 2003
Messages
400
Access 2013
I have a form (F_WorkingHoursSub) with 3 fields (Workers, Contractors and Total)

Sometimes I have the hours for Workers and Contractors, and other times I only have the Total hours.

I would like the total field to show Workers + Contractors if this data is entered. But... If I only have the total, I would like to be able to enter the total in the total field and show the other two fields blank.

Any suggestions??? My brain is already melted
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Here is one approach to consider taking:
1. Import all three fields (if it imports blanks/nothing for certain fields, that is fine). Maybe call the "Total" one here "Combined".
2. Create a calculated Total field on that adds up all three fields from step 1.
3. If you are creating any Reports off of this data, you can hide/not show the "Combined" field, if you like.
 
Upvote 0
Here is one approach to consider taking:
1. Import all three fields (if it imports blanks/nothing for certain fields, that is fine). Maybe call the "Total" one here "Combined".
2. Create a calculated Total field on that adds up all three fields from step 1.
3. If you are creating any Reports off of this data, you can hide/not show the "Combined" field, if you like.

Thank you for trying but If I add all three, it would over estimate the workers.

The data I enter comes in two ways;
I have Workers and contractors or I have the total (not broken down)
I need to be able to enter these according to the data I receive.

If I have the workers and contractors, I want it to sum for me in the Total field.
If I have the total only, I want to show this in the total field. the other two fields will be blank.

sorr if this was not clear
 
Upvote 0
Yes, I understand. I do not see how that would over estimate the workers.
Let's look at a simple example:

I have Workers and contractors or I have the total (not broken down)
I am going to call the single total "Combined" for this example.
So if I understand you correctly, the incoming data will look one of two ways (and I am showing two records to display that):
Code:
Workers          Contractors           Combined
   50                 20
   30                 45
                                           85
                                           77
So, then if we add a Total calculation that sums all three fields for each row, we would get the following:
Code:
Workers          Contractors           Combined           TOTAL
   50                 20                                   70
   30                 45                                   75
                                           85              85
                                           77              77
So how would that be an over estimation?

As I mentioned, you can "hide" the "Combined" field on any reporting, if you like, so the results would look like this:
Code:
Workers          Contractors               TOTAL
   50                 20                     70
   30                 45                     75
                                             85
                                             77
That seems to be what you want, right?
 
Upvote 0
Yes, I understand. I do not see how that would over estimate the workers.
Let's look at a simple example:


I am going to call the single total "Combined" for this example.
So if I understand you correctly, the incoming data will look one of two ways (and I am showing two records to display that):
Code:
Workers          Contractors           Combined
   50                 20
   30                 45
                                           85
                                           77
So, then if we add a Total calculation that sums all three fields for each row, we would get the following:
Code:
Workers          Contractors           Combined           TOTAL
   50                 20                                   70
   30                 45                                   75
                                           85              85
                                           77              77
So how would that be an over estimation?

As I mentioned, you can "hide" the "Combined" field on any reporting, if you like, so the results would look like this:
Code:
Workers          Contractors               TOTAL
   50                 20                     70
   30                 45                     75
                                             85
                                             77
That seems to be what you want, right?



You are so right. it is easier when the data is seen. Thank you for taking time to show me.
 
Upvote 0

Forum statistics

Threads
1,223,561
Messages
6,173,047
Members
452,500
Latest member
jesuisazep

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top