AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Bob Umlas
Expertise
I`m a Microsoft Excel MVP (Most Valuable Professional) and have been since the inception of the program in 1995. I can answer every kind of Excel question except: API, Importing/exporting to other programs (powerpoint, word,...)

Experience
Worked with MS Excel since version 0.99 (on the Mac!). Was contributing editor to Excellence Magazine, having written >300 articles. John Walkenbach said of me "I finally met someone who knows as much about Excel as I do."

Publications
Excellence, The Expert, Microsoft

Awards and Honors
MVP
Led sessions for the Convergence 2004-2006 seminar on Excel tips & tricks
 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > Troublesome multiple IF function.

Excel - Troublesome multiple IF function.


Expert: Bob Umlas - 2/16/2008

Question
Hi Bob,

I've done a few months roughly touching in and out of Excel. I know my way around the basics and can build some functions, but I'm currently having trouble with a multiple IF.
I can see nothing wrong with the function itself but it keeps returning the result #NAME?.
I'm pretty sure there is an easier way to achieve what I'm hoping for, but I really haven't got the experience.
I've pasted the formula below. Thank you so much in advance for any help you can provide.

=IF(A8="Monday",Tuesday,IF(A8="Tuesday",Wednesday,IF(A8="Wednesday",Thursday,IF(A8="Thursday",Friday,IF(A8="Friday",Saturday,IF(A8="Saturday",Sunday,IF(A8="Sunday",Monday,Seek Help)))))))

Answer
You're getting #NAME? because if A8 were Monday, for example, your formula would return the name Tuesday, not the text "Tuesday". You could change it to be
=IF(A8="Monday","Tuesday",IF(A8="Tuesday","Wednesday",IF(A8="Wednesday","Thursday",IF(A8="Thursday","Friday",IF(A8="Friday","Saturday",IF(A8="Saturday","Sunday",IF(A8="Sunday","Monday","Seek Help")))))))

or (assuming A8 really contains text, not a date FORMATTED as the day of a week):

Enter this formula by first holding ctrl+shift, then enter:
=INDEX(TEXT(ROW(2:8),"dddd"),MATCH(A8,TEXT(ROW(1:7),"dddd"),0))

Add to this Answer   Ask a Question


 
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.