YEARFRAC doesn't work with structured reference in excel table

jaxhax

New Member
Joined
Jan 11, 2019
Messages
2
Using Excel 2016.

Create an excel table with 3 columns:
date1
date2
year_frac

Add one row to the table. In the date columns, put any dates
Format the table using the "Format as Table" feature.

in the year_frac column enter this formula:
=YEARFRAC([date1],[date2])

The formula appears to work fine with only one row in the table.
Add another row to the table, then the formula returns #VALUE ! error.

Use "Show Calculation Steps" and it appears that the structured reference points to the entire column range, not just the cell in that row.

If I change the formula to:
=YEARFRAC([A2],[B2])

It works fine. The structured reference in the YEARFRAC formula seems to make it not work.
Am I missing something?
Thanks, Jack
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Yep, that works. I guess I just didn't really understand well enough how structured refs worked.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,923
Members
448,533
Latest member
thietbibeboiwasaco

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