If person has both a Roth and 401K display earnings amount once in gross earnings row.

Cyndi2210

New Member
Joined
Jul 12, 2018
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
If the person has a 401K & Roth, we only need to report the Gross Earnings once. I can't get the formula right.


NameDate
Earnings​
Gross EarningsType401K401LRothTotal
Name 16/18/2012574.75 40128.7428.74
Name 16/18/20120401L38.2838.28
Name 24/1/20041206 401241.20241.20
Name 39/20/19801750 401400.00400.00
Name 46/27/20001769.23 40188.4688.46
Name 46/27/20000401L43.7243.72
Name 46/27/20000401L2106.51106.51
Name 59/30/19802700 40150.0050.00
Name 612/2/20141136.61 40156.8356.83
Name 71/17/2018551.25 40127.5627.56
Name 810/7/19921102.82 401110.28110.28
Name 910/7/19921830.4 401183.04183.04
Name 105/9/20050401L20.9920.99
Name 118/13/2018476.25 4019.539.53
Name 118/13/2018476.25ROTH13.18
Name 127/5/2017955.5 40128.6728.67
Name 127/5/2017955.5ROTH18.75
Name 138/9/20040401L75.2175.21
Name 138/9/20040401L233.2133.21
Name 144/23/20011097.2 40132.9232.92
Name 159/7/2006518.61 40115.5615.56
Name 159/7/20060401L13.0613.06

<colgroup><col><col><col span="2"><col span="5"></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi Cyndi,
can you give a bit more context and explain it like I don't have the spreadsheet in front of me (I don't)? Is this a pivot table? Are there formulas in that column that refer to another sheet? Is the ordering of Name, Date & Type always the same? Etc.
Thanks for helping me help you,
Koen
 
Upvote 0
Hi Cyndi,
can you give a bit more context and explain it like I don't have the spreadsheet in front of me (I don't)? Is this a pivot table? Are there formulas in that column that refer to another sheet? Is the ordering of Name, Date & Type always the same? Etc.
Thanks for helping me help you,
Koen

This data is being pulled from payroll records via Microsoft Query. All the columns except the bolded amounts in Name 11 & 12 Earnings columns are correct. Name 11 & 12 Earnings records are duplicating, since it is displaying the full earnings record for 401K and Roth. I only need the formula to display one Earnings amount in the Gross Earnings column for each person on the report. If the earnings amount is listed as 0 for the persons with 401L amounts that is correct, since these are loan repayment amounts. This report is uploaded to the 401K provider so it must stay in this format. I included the additional persons and columns for context only.
 
Upvote 0
Hi Cyndi,
if the data is pulled in by MS Query, you probably want to change the data there. What comes to mind: filter out the "Type = ROTH" or for Earnings: put in a formula like "IF Type = ROTH THEN Earnings = 0 ELSE Earnings = Earnings".
Hope that helps,
Koen
 
Upvote 0
I wasn't able to get it to work on the query, because I'm not that good. However, I was able to use it to create the IF statement I needed once the information was returned to Excel. =IF([@Type]="ROTH",0,[@[Gross Earnings]]). Thanks so much.
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,225
Members
448,951
Latest member
jennlynn

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