Solved

excel formulas

Posted on 2014-09-04
5
171 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 49

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
create excel pivot chart 12 43
Extract Names Based on Position in the Column 12 29
VLOOKUP 6 17
Excel, covert column titles to row titles and back 2 11
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

773 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