Solved

excel formulas

Posted on 2014-09-04
5
174 Views
Last Modified: 2014-09-08
Hi,

This probably a very simple one but is given me a headache.  Can someone please help me find what I am missing in this formula?

Is very easy but hard for me....lol    

I need column "L" to either display "FullBoard" or "HalfBoard" or "NA" if no criteria was met.  So the way it will look for fullboard is if column "K" has the word "LU", if it doesn't have the word LU then it should be Halfboard, and in case there is an error somewhere the I will like "NA" to be display as last resort.

I need the cell marked in yellow working.  I have attached the file.

Thanks,
Template-.xlsb
0
Comment
Question by:tech-gineer
  • 3
5 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 40303578
Hi,

Maybe

=IFERROR(IF(FIND("LU",K7,1),"FullBoard",(IF(D7="New York-Campus Dormitory","HalfBoard"))),NA())

Regards
0
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 40303599
Alternatively, in case "LU" is at the beginning of a comma-separated list of values within cell [K7], or at the end of the list of values, or cell [K7] is just "LU" (without any other values listed):

=IF(ISBLANK(K7),"NA",IF(OR(K7="LU",IFERROR(FIND(",LU",K7),0),IFERROR(FIND("LU,",K7),0)),"FullBoard","HalfBoard"))
0
 
LVL 35

Assisted Solution

by:[ fanpages ]
[ fanpages ] earned 500 total points
ID: 40303624
Your example workbook file updated with the formula above applied to all appropriate cells within column [L].

Also, extra "test" rows added.
Q-28511544.xlsb
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40303640
I'm not sure what your criteria for error would be since we're simply saying:

If it has LU then do FullBoard,
If not, do HalfBoard
That will only return one or the other..
If you want to a third option, then we would have to test for a data type, perhaps...

In either case, this works:

=IFERROR(IF(ISNUMBER(SEARCH("LU",K2)),"FullBoard","HalfBoard"),"NA")
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 40303647
^ I specifically checked for ",LU" & "LU," in case any of the other text within column [K] contained those two characters.

For example,

"FIRST,CLUE,SECOND"
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question