Capital Gains and Losses TT 2023 and 2024

Am trying to complete my 2024 Taxes and have run into an issue with Capital Gains and Losses and carryovers. I imported all my 1099's through TT Deluxe

 

Upon review of my 2023 filed taxes, my 1040SR Line 7 Capital Gain or Loss reflects $165.00 (gain)

 

Schedule D Part II reflects as follows:

Line:

8b:    -318

9:       -5,1,617.34.

13:     5,617.

14:     blank

15:     165. 

 

Form 1099B -Worksheet:

Form 8949, Box D 3,286.00 (proceeds)  3,742.00 (cost basis)   138.00W (adjust amt)   -318.00 Adj Gain/Loss

Form 8949, Box E  51,217.00 (proceeds 56.351.00 (cost basis)                                           -5,134.00 Adj G/L

 

How does a loss of $5,167 becomes a positive $165 in capital gains on the 1040? 

 

For calendar year 2024

Form 1099B Worksheet

Schedule D, Part II  Line 8b  -9,809     Line 13    10,733     Line 15    924.99

 

1040SR  Line 7 shows  894.00

 

Same question - loss of 9,809 become a positive $894 in capital gains?

 

Can someone kindly explain this to me?   Obviously I've got a mental block!  


Thank you!