XIRR Multiple Cashflows Ignoring Text Rows

tannaroo

New Member
Joined
Nov 15, 2022
Messages
13
Office Version
  1. 2019
Platform
  1. Windows
Hi
I'm trying to calculate the XIRR of various stock purchases/sales that have header rows with text. But XIRR doesn't like that so was tryinh to use the INDIRECT function within XIRR but I just couldn't figure it out. Any help would be greatly appreciated.

I want the XIRR function (cell A2) to basically ignore any row that has text, so it only identifies the dates (column A) with the corresponding cashflow (olumn F)


stock purchase example.xlsx
ABCDEF
2#VALUE!
3STOCK ATICKER ASECTOR
4DateBought/SoldNumberPriceAmount (Base)
510-Jun-22B10048.00(4,800.00)
613-Jun-22B10046.00(4,600.00)
714-Jun-22B10045.00(4,500.00)
814-Jul-22B5043.00(2,150.00)
931-Jul-22S(300)40.0012,000.00
1027-Sep-22B10043.00(4,300.00)
1117-Nov-2215060.009,000.00
12
13STOCK BTICKER BSECTOR
14DateBought/SoldNumberPriceAmount (Base)
1510-Jun-22B1,0006.00(6,000.00)
1613-Jun-22B1004.00(400.00)
1714-Jun-22B1003.00(300.00)
1814-Jul-22B509.00(450.00)
1917-Nov-221,25012.0015,000.00
Sheet1
Cell Formulas
RangeFormula
A2A2=XIRR(F5:F20, A5:A20)
A11,A19A11=TODAY()
C11C11=SUM(C5:C10)
F5:F10,F15:F18F5=ROUND(((-C5 * D5) + E5), 2)
F11,F19F11=-ROUND(((-C11 * D11) + E11), 2)
C19C19=SUM(C15:C18)
 
After searching Google, I found the following article that explains how to calculate XIRR by year. Maybe you'll find it helpful.


Cheers!
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,264
Messages
6,171,085
Members
452,378
Latest member
Hoodzy01

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