Need Advice on how I should approach a schedule K-1 for QC

shyy

Well-known Member
Joined
Nov 6, 2008
Messages
1,484
Hey guys,

I finally found a program that can out put the amounts from a schedule k-1 form. Now comes the hard part, adding logical formulas.

Some of the line items either have an amount to or not. What the pdf2xl program does is output where if the line item has an amount to it, it would add the amount right below the line item. If it doesn't have an amount, it would just add the next line item underneath. Question is what is a good approach to get this to automate, so if line items have an amount, then that amount is known to be line item cell above. Here comes the tricky part as well, some line items have alphabets to them, so a particular line item say 11 would have A-F or line 13 would have A-W. What is a good way to have the line item output the line item + alphabet?

Column A & C = Line Item
Column B & D = Alphabet

Link to the IRS form http://www.irs.gov/pub/irs-pdf/f1065sk1.pdf

Thanks in advance

Excel 2010
ABCD
11Ordinary business income (loss)15Credits
22Net rental real estate income (loss)
33Other net rental income (loss)16Foreign transactions
4AOC
54Guaranteed payments
6B4159
75Interest income
8H923663
96aOrdinary dividends
106bQualified dividends
117Royalties
128Net short-term capital gain (loss)
139aNet long-term capital gain (loss)17Alternative minimum tax (AMT) items
14*-923663
159bCollectibles (28%) gain (loss)
169cUnrecaptured section 1250 gain
1710Net section 1231 gain (loss)18Tax-exempt income and
18nondeductible expenses
1911Other income (loss)
20F*4159
2119Distributions
2212Section 179 deduction
2313Other deductions
24K*1371820Other information
25W*5854B13718
2614Self-employment earnings (loss)
27*See attached statement for additional information.

<tbody>
</tbody>
Sheet1
Desired End Result:
Excel 2010
GHIJ
11Ordinary business income (loss)15Credits
22Net rental real estate income (loss)
33Other net rental income (loss)16Foreign transactions
4AOC
54Guaranteed payments
6B16B
75Interest income
8H16H
96aOrdinary dividends
106bQualified dividends
117Royalties
128Net short-term capital gain (loss)
139aNet long-term capital gain (loss)17Alternative minimum tax (AMT) items
14*9a*
159bCollectibles (28%) gain (loss)
169cUnrecaptured section 1250 gain
1710Net section 1231 gain (loss)18Tax-exempt income and
18nondeductible expenses
1911Other income (loss)
20F*11F*
2119Distributions
2212Section 179 deduction
2313Other deductions
24K*13K*20Other information
25W*13W*B20B
2614Self-employment earnings (loss)
27*See attached statement for additional information.

<tbody>
</tbody>
Sheet1
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Example where I am having trouble and what I am currently doing:

Some of these line items have 1 - 3 alphabets to them, in this case just 2 for line 13.

Excel 2010
ABCD
2313Other deductionsProblemDesired Result
24K*1371813K*13K*
25W*5854K*W*13W*

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C24=IF(ISNUMBER(B24)=TRUE,A23&A24,"")
C25=IF(ISNUMBER(B25)=TRUE,A24&A25,"")

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
Getting close, now having trouble if the line items are just by themselves.

=IF(ISNUMBER(J48)=TRUE,I48&IF(ISNUMBER(I48),I47,IF(ISNUMBER(I47)=TRUE,I47,I46)),"")


Excel 2010
ABE
2313Other deductions 
24K*13718K*13
25W*5854W*13
Sheet1
Cell Formulas
RangeFormula
E23=IF(ISNUMBER(B23)=TRUE,A23&IF(ISNUMBER(A23),A22,IF(ISNUMBER(A22)=TRUE,A22,A21)),"")
E24=IF(ISNUMBER(B24)=TRUE,A24&IF(ISNUMBER(A24),A23,IF(ISNUMBER(A23)=TRUE,A23,A22)),"")
E25=IF(ISNUMBER(B25)=TRUE,A25&IF(ISNUMBER(A25),A24,IF(ISNUMBER(A24)=TRUE,A24,A23)),"")
 
Upvote 0
Getting there..

Excel 2010
IJKLMN
3891Ordinary business income (loss)15Credits
3902Net rental real estate income (loss)
3913Other net rental income (loss)16Foreign transactions
392AOC
3934Guaranteed payments
394B467AB
3955Interest income
396H12851BH
3976aOrdinary dividends
3986bQualified dividends
3997Royalties
4008Net short-term capital gain (loss)
4019.1Net long-term capital gain (loss)17Alternative minimum tax (AMT) items
402*-128519.1*
4039bCollectibles (28%) gain (loss)
4049cUnrecaptured section 1250 gain
40510Net section 1231 gain (loss)18Tax-exempt income and
406nondeductible expenses
40711Other income (loss)
408F*46711F*
40919Distributions
41012Section 179 deductionA3502919A
41113Other deductions
412K*382213K*20Other information
413W*65713W*B382220B
41414Self-employment earnings (loss)
415A5014A
416B4414B
417E2314E

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
K389=IF(COUNT(J387:J389)=3,I386&I389,IF(ISNUMBER(J389)=TRUE,IF(ISNUMBER(I389),I388,IF(ISNUMBER(I388)=TRUE,I388,I387)&I389),IF(COUNT(J387:J389)=3,I386&I389,"")))
K390=IF(COUNT(J388:J390)=3,I387&I390,IF(ISNUMBER(J390)=TRUE,IF(ISNUMBER(I390),I389,IF(ISNUMBER(I389)=TRUE,I389,I388)&I390),IF(COUNT(J388:J390)=3,I387&I390,"")))
K391=IF(COUNT(J389:J391)=3,I388&I391,IF(ISNUMBER(J391)=TRUE,IF(ISNUMBER(I391),I390,IF(ISNUMBER(I390)=TRUE,I390,I389)&I391),IF(COUNT(J389:J391)=3,I388&I391,"")))
K392=IF(COUNT(J390:J392)=3,I389&I392,IF(ISNUMBER(J392)=TRUE,IF(ISNUMBER(I392),I391,IF(ISNUMBER(I391)=TRUE,I391,I390)&I392),IF(COUNT(J390:J392)=3,I389&I392,"")))
K393=IF(COUNT(J391:J393)=3,I390&I393,IF(ISNUMBER(J393)=TRUE,IF(ISNUMBER(I393),I392,IF(ISNUMBER(I392)=TRUE,I392,I391)&I393),IF(COUNT(J391:J393)=3,I390&I393,"")))
K394=IF(COUNT(J392:J394)=3,I391&I394,IF(ISNUMBER(J394)=TRUE,IF(ISNUMBER(I394),I393,IF(ISNUMBER(I393)=TRUE,I393,I392)&I394),IF(COUNT(J392:J394)=3,I391&I394,"")))
K395=IF(COUNT(J393:J395)=3,I392&I395,IF(ISNUMBER(J395)=TRUE,IF(ISNUMBER(I395),I394,IF(ISNUMBER(I394)=TRUE,I394,I393)&I395),IF(COUNT(J393:J395)=3,I392&I395,"")))
K396=IF(COUNT(J394:J396)=3,I393&I396,IF(ISNUMBER(J396)=TRUE,IF(ISNUMBER(I396),I395,IF(ISNUMBER(I395)=TRUE,I395,I394)&I396),IF(COUNT(J394:J396)=3,I393&I396,"")))
K397=IF(COUNT(J395:J397)=3,I394&I397,IF(ISNUMBER(J397)=TRUE,IF(ISNUMBER(I397),I396,IF(ISNUMBER(I396)=TRUE,I396,I395)&I397),IF(COUNT(J395:J397)=3,I394&I397,"")))
K398=IF(COUNT(J396:J398)=3,I395&I398,IF(ISNUMBER(J398)=TRUE,IF(ISNUMBER(I398),I397,IF(ISNUMBER(I397)=TRUE,I397,I396)&I398),IF(COUNT(J396:J398)=3,I395&I398,"")))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Incase anyone is wondering how I am doing it, seems to work :)

Sample Data:


Excel 2010
ABCD
63Table 6
64Part III Partner's Share of Current Year Income, Deductions, Credits, and Other Items
651Ordinary business income (loss)15Credits
662Net rental real estate income (loss)
673Other net rental income (loss)16AForeign transactions OC
684Guaranteed paymentsB31
695Interest incomeH3,278.00
706aOrdinary dividends
716bQualified dividends
727Royalties
738Net short-term capital gain (loss)
749a *Net long-term capital gain (loss) -3,278.17Alternative minimum tax (AMT) items
759bCollectibles (28%) gain (loss)
769cUnrecaptured section 1250 gain
7710Net section 1231 gain (loss)18Tax-exempt income and nondeductible expenses
7811 F*Other income (loss) 31.
79
8019 ADistributions 1,570.
8112Section 179 deduction
82
8313 K*Other deductions 154.
84
8520BOther information 154.
86W*43
8714Self-employment earnings (loss)
Sheet1


Excel 2010
FG
65
66
67
68 31
69 3,278
70
71
72
73
74 (3,278)
75
76
77
78 31
79
80 1,570
81
82
83 154
84
85 154
86 43
87

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F65=IF(A65=$E$1,"",IF(OR(COUNTIF(A65,"*"&"Beginning capital"&"*"),COUNTIF(A65,"*"&"Capital contributed"&"*"),COUNTIF(A65,"*"&"Current year increase"&"*"),COUNTIF(A65,"*"&"Withdrawals"&"*"),COUNTIF(A65,"*"&"Ending capital"&"*"))=TRUE,"",IFERROR(0+TRIM(RIGHT(SUBSTITUTE(B65," ",REPT(" ",200)),200)),"")))
G65=IFERROR(0+TRIM(RIGHT(SUBSTITUTE(D65," ",REPT(" ",200)),200)),"")
F66=IF(A66=$E$1,"",IF(OR(COUNTIF(A66,"*"&"Beginning capital"&"*"),COUNTIF(A66,"*"&"Capital contributed"&"*"),COUNTIF(A66,"*"&"Current year increase"&"*"),COUNTIF(A66,"*"&"Withdrawals"&"*"),COUNTIF(A66,"*"&"Ending capital"&"*"))=TRUE,"",IFERROR(0+TRIM(RIGHT(SUBSTITUTE(B66," ",REPT(" ",200)),200)),"")))
G66=IFERROR(0+TRIM(RIGHT(SUBSTITUTE(D66," ",REPT(" ",200)),200)),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Shyy,

If I understand correctly what you want, maybe this can helps:

Layout

Col01Col02Col03Col04Col05Col06
1Ordinary business income (loss)15Credits
2Net rental real estate income (loss)
3Other net rental income (loss)16Foreign transactions
AOC
4Guaranteed payments
B415916B
5Interest income
H92366316H
6aOrdinary dividends
6bQualified dividends
7Royalties
8Net short-term capital gain (loss)
9aNet long-term capital gain (loss)17Alternative minimum tax (AMT) items
*-9236639a*
9bCollectibles (28%) gain (loss)
9cUnrecaptured section 1250 gain
10Net section 1231 gain (loss)18Tax-exempt income and
nondeductible expenses
11Other income (loss)
F*415911F*
19Distributions
12Section 179 deduction
13Other deductions
K*1371813K*20Other information
W*585413W*B1371820B
14Self-employment earnings (loss)
*See attached statement for additional information.
********************************************************************************************************************

<tbody>
</tbody>

Formula

Code:
In C2 - use Ctrl+Shift+Enter to enter the formula

=IF(ISNUMBER(B2),LOOKUP(99^99,IF(CODE(RIGHT(A$1:A1,1))>57,--LEFT(A$1:A1,LEN(A$1:A1)-1),A$1:A1),A$1:A1)&A2,"")

Markmzz
 
Upvote 0
Wow Thanks Markmzz!

When you get a chance can you explain how that formula works?

I had to use couple helper columns to get what I need, unfortunately this will not work with my sample data since I have bunch of other things that are not line item related below this table. Sorry I should have posted more of the sample.
 
Upvote 0
Wow Thanks Markmzz!

When you get a chance can you explain how that formula works?

I had to use couple helper columns to get what I need, unfortunately this will not work with my sample data since I have bunch of other things that are not line item related below this table. Sorry I should have posted more of the sample.

You are welcome.

The formula below:

LOOKUP(99^99,IF(CODE(RIGHT(A$1:A1,1))>57,--LEFT(A$1:A1,LEN(A$1:A1)-1),A$1:A1),A$1:A1)

work like this:

1) IF(CODE(RIGHT(A$1:A1,1))>57,--LEFT(A$1:A1,LEN(A$1:A1)-1),A$1:A1) - verify if the last caracter of the string isn't a number (code(0)=48 and code(9)=57)).

If it isn't, then get the first caracters of the string minus the last one ("9b" - "9", "11f" - "11") and change they to number (--).

If it is a number, then get all data (9 - 9, 11 - 11).

2) Finally, LOOKUP(99^99,IF(CODE(RIGHT(A$1:A1,1))>57,--LEFT(A$1:A1,LEN(A$1:A1)-1),A$1:A1),A$1:A1)

The LOOKUP function lookup for the last number in the result range of the part of the formula above and get the value of the range A$1:A1.

I hope that the information above helps.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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