+ Reply to Thread
Results 1 to 20 of 20

Date Range, Return Text, Formula VLookup #Spill! Error

  1. #1
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Date Range, Return Text, Formula VLookup #Spill! Error

    Attached is a very simplified version of a massive workbook that I received to make corrections. I figured out most of it, but now, what I am guessing to be a very simple formula, has me very stumped.

    In column K, I am using the VLookUp formula to return which fiscal year the Service Provided Date from column C represents. Anything prior to the actual FY19 date is to be labeled as FY19 for simplicity in other locations on the original workbook.
    I have 2 problems with the same formula:
    1. The formula is: =VLOOKUP([@[Srvc Provided]],FYTABLE,2,TRUE)

      In the simplified workbook, it is working. However, in my original workbook, I am getting a #N/A error.

      If I change the formula, in the original workbook, to: =VLOOKUP([Srvc Provided],FYTABLE,2,TRUE) I receive a #SPILL! error.


    2. SOLVED --- The other issue I have is that the original workbook has 29,508 rows in it....and will continue to grow....the rest of the columns, when I change the formula in one cell, it updates it in the entire column automatically. This column never had a formula before...how do I get it to update the entire column?

    Opinions: For this updated version, should I remove all the prior history and start fresh...they will be adding hundreds of rows every week, as this is a payroll spreadsheet.

    Thank you so very much for your assistance!

    Carol
    aka CHill
    Venice, FL

    **I have learned so much over the years from this forum. Thank you!**
    Attached Files Attached Files
    Last edited by CHillFL; 01-27-2022 at 05:03 PM. Reason: Solved

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Quote Originally Posted by CHillFL View Post
    If I change the formula, in the original workbook, to: =VLOOKUP([Srvc Provided],FYTABLE,2,TRUE) I receive a #SPILL! error.
    Maybe You should use the same formula:


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Kokosek - when I do that I get an #N/A error - it HAS to return a text answer, like FY20 or FY22, etc....

    In my original workbook I cannot get the formula to work - either how I had it listed originally or the change.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    You have written different formula in your post.
    So as 1st be sure that you are using proper formula, and as 2nd, are you sure that particular value exist in FYTABLE?

  5. #5
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    ok...so now I'm confused. Which one is the proper formula (format?) ?

    The 'Srvc Provided' is in the same table as the formula, in column C. It has the date of service listed that needs to be placed into a fiscal year and that fiscal year (FY19, FY20, FY21, or FY22) needs to be listed in column K (highlighted in attached file in yellow) so that it can be used in a variety of pivot tables in other tabs.

    The FYTABLE is found on a different Tab (see the second tab in the attached simplified file - where the formula works fine). The only things listed in the table are the dates, in the first column of the table, and the text to be entered, in the second column...there are only 2 columns...where the fiscal years are listed.

    These conditions are identical in the original workbook, although, there are several more columns listed, and there are three other tables found on the tab "Tables (Update as Necessary).....when I open the Existing Connections, the FYTABLE is listed.

    The only other difference between the sample file and my original file is that I placed the TYTABLE below another named table, will that affect it? Do I need to place it in columns on its own?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    You need to use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The other way will not work in a structured table, as you cannot put s spill formula in a table

  7. #7
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Thank you, Fluff13...I am using that formula and I get #N/A as the result, when the date in Srvc Provided is 12/22/21 and should be returning FY22.

    I did move the table to its own columns (even though I'm not sure it really mattered, I wanted to make sure it wasn't causing an issue).

  8. #8
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    BTW...I did find the overwrite all cells in column feature...and did use that, so that part of my question has been solved

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    You should only get #N/A if one of the dates is before any date in the FYTable, or if you enter a date as text.

  10. #10
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Fluff13...I verified that the column cell formatting is set to date, in both the Srvc Provided column and the FYTABLE date column....I am still getting the #N/A...and the starting date of the FYTABLE is 10/1/2015 and the ending date is 10/1/23....12/22/21 is between those dates. Also, when I copied the formula to all the cells in the column, they were all #N/A....so I am still really confused as to why this formula worked in the sample file, but is not in my original file....I even copied the FYTABLE from the sample file into the original file so that it was identical. I copied the formula from the sample to the original....I 're-attached' in the original to the Srvc Provided and FYTABLE in the formulas by retyping them and selecting from the drop down. Still same result. When I changed the column to a different column with the pay date listed in it...the results were correct....so, it's probably something with that original column, the Srvc Provided?

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Select the Srvc Provided column & change the format to General. What do you see?

  12. #12
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Changing the format to General did not work....still receiving #N/A.

    =VLOOKUP([@[Srvc Provided]],FYTABLE,2,TRUE) - this format provides #N/A

    When I change it to the PayDate column, the formula changes to =VLOOKUP([@PayDate],FYTABLE,2,TRUE) - This returns the correct response. I do the change by clicking on the lookupvalue and typing in the column name....selecting it... and when I'm done, the formula automatically changes....could it be the space in the column heading?

  13. #13
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    No....removing the space in the column title still returns #N/A =VLOOKUP([@SRVCProvided],FYTABLE,2,TRUE)


  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Changing the format to General did not work....still receiving #N/A.
    Yes but what do you see in Srvc Provided column, dates or numbers?

  15. #15
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    I'm seeing dates....and the formatting for PayDate is identical, so using PayDate is working, but not Srvc Provided.

  16. #16
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    If you still see dates after changing the format to General, then they are text & not real dates. If they were real dates you would see a 5 digit number.

  17. #17
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    ok...out of thousands of rows of data, there are only 4 cells that changed to 5 digits.....and I cannot get the rest of them to change....do you have a secret?

  18. #18
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    You could try text to columns, select delimited, next, clear all checkboxes, next, select date,finish

  19. #19
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Genius! Thank you for that secret! It is now working! I have added it to the steps that the user needs to complete when they paste in new data.

    I really appreciate your assistance with working through this craziness!

  20. #20
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Date Range, Return Text, Formula VLookup #Spill! Error

    Glad to help & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. When using a formula I get the Spill error
    By viewotst in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-05-2021, 07:34 AM
  2. Keep Getting #SPILL! Error for my Formula
    By prestonfussell in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-28-2021, 05:49 PM
  3. [SOLVED] Getting SPILL reference when using IF to return from a range
    By TryingToLearnUK in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-22-2020, 07:53 AM
  4. Spill Error with index match formula
    By Daniel_ISS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2020, 09:36 AM
  5. [SOLVED] Formula to return a text value from date range
    By Raehan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2019, 02:57 PM
  6. [SOLVED] Excel VBA 2016 32bit - Vlookup Date after date typed in and return value from named range
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2017, 02:34 AM
  7. [SOLVED] Excel 2007 : formula to return text value from a date range
    By Bootkie2 in forum Excel General
    Replies: 6
    Last Post: 09-08-2011, 06:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1