+ Reply to Thread
Results 1 to 12 of 12

#NAME? Error, need help to fix, I can't find the problem.

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    #NAME? Error, need help to fix, I can't find the problem.

    Hi Everyone

    I am having a bit of trouble with one of my formula's. I have this formula on another excel spreadsheet and it works fine, but when i re-typed it onto a new spreadsheet I need it comes up with the name error. I cannot think of what it could be. Any help would be greatly appreciated. Please find the spreadsheet attached below:

    Basically what I would like to happen is that you enter the date into coloumn A and when I type a number into the corresponding cell in coloumn E (you will see a key in coloumn O and P) i would like cell K5 to display with a due date

    I know that I do not need macro's as I have another spreadsheet that doesnt use them. Ifyou need any help with this then just let me know

    Regars
    Rhiannon
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Sorry I added the wrong spreadsheet.

    Here is the correct one.Site Access Tracking Sheet.xls

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: #NAME? Error, need help to fix, I can't find the problem.

    ..Basically what I would like to happen is that you enter the date into coloumn A and when I type a number into the corresponding cell in coloumn E (you will see a key in coloumn O and P) i would like cell K5 to display with a due date
    I can't see anything in columns O & P....

    So if in A5 put 15/07/2013 and in E5 type 10, what is the expacted result in K5??(Or perhaps in J5??)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Hi Fotis

    I uploaded the wrong spreadsheet please see the new one under my original post.

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Also if i typed today's date in coloumn A5 and in E5 i put 1, then in K5 the result would be the date 1 week from today.

    You should be able to see the key in coloumn O and P but if not here it is:

    VALIDATION TIMES
    1 Week = 1
    1 Month = 2
    3 Months = 3
    6 Months = 4
    1 Year 5

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Rhiannon . What is this DateSwitch in your formula?

    IF(AND(A5<>"";E5<>"");DateSwitch(E5=1;A5+7;E5=2;DATE(YEAR(A5);MONTH(A5)+1;DAY(A5));E5=3;DATE(YEAR(A5);MONTH(A5)+3;DAY(A5));E5=4;DATE(YEAR(A5);MONTH(A5)+6;DAY(A5));E5=5;DATE(YEAR(A5)+1;MONTH(A5);DAY(A5)));"")

    Are you trying to add a number of months(OR YEAR in last case) in column K, according the number that you put in column E?

  7. #7
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Im not sure what the DateSwitch is, to get the first spreadsheet to work the first time i posted it onto this website and thats the formula i was given and it worked.

    As for your second question, yes that is what I woud like to happen

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Try

    =IF(A5="","",IF(E5=1,A5+7,IF(E5=2,DATE(YEAR(A5),MONTH(A5)+1,DAY(A5)),IF(E5=3,DATE(YEAR(A5),MONTH(A5)+3,DAY(A5)),IF(E5=4,DATE(YEAR(A5),MONTH(A5)+6,DAY(A5)),IF(E5=5,DATE(YEAR(A5)+1,MONTH(A5),DAY(A5))))))))

  9. #9
    Registered User
    Join Date
    12-09-2011
    Location
    BSB
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: #NAME? Error, need help to fix, I can't find the problem.

    try this

    =IF(AND(A5<>"",E5<>"",E5=1),DATE(YEAR(A5),MONTH(A5)+1,DAY(A5)+7),IF(AND(A5<>"",E5<>"",E5=2),DATE(YEAR(A5),MONTH(A5)+3,DAY(A5)+30),IF(AND(A5<>"",E5<>"",E5=3),DATE(YEAR(A5),MONTH(A5)+3,DAY(A5)),IF(AND(A5<>"",E5<>"",E5=4),DATE(YEAR(A5),MONTH(A5)+6,DAY(A5)),IF(AND(A5<>"",E5<>"",E5=5),DATE(YEAR(A5)+1,MONTH(A5),DAY(A5)),"")))))

  10. #10
    Registered User
    Join Date
    09-20-2012
    Location
    Western Australia, Australia
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #NAME? Error, need help to fix, I can't find the problem.

    Thank Fotis, your formula worked, except that after i entered the date in coloumn A and before i entered 1-5 in coloumn E it would show up with false in coloumn k. But thank-you for your help

    and @supermansaja your formula fixed the problem I was having with my original formula and stayed blank until all the information was added, so thank-you

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: #NAME? Error, need help to fix, I can't find the problem.

    ........................

  12. #12
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: #NAME? Error, need help to fix, I can't find the problem.

    hi Rhiannon25. i think you should check if supermansaja's formula give you the right result if validation Time is 2? i get 11-Oct-13 when i think it should be 11-Jul-13? here's an alternative formula:
    =IF(E5="","",DATE(YEAR(A5),MONTH(A5)+CHOOSE(E5,0,1,3,6,12),DAY(A5)+IF(E5=1,7,0)))

    or if you are no longer using Excel 2003, then:
    =IF(E5=1,A5+7,IF(E5="","",EDATE(A5,CHOOSE(E5-1,1,3,6,12))))

    this is also available if you do the add-in for Excel 2003

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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