Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Alright, so what I'm trying to do is have Excel append multiple custom Error Text in one cell, if there are more than 1 errors. So here's an example. I want all this code parsed within one cell. We'll call it A10 Code: -------------------- =IF(AE1="OK","","ERROR 1") =IF(AE3="OK","","ERROR 2") =IF(AE5="OK","","ERROR 3") -------------------- So, if a single row has three errors (not equal to OK), then I want the cell to report (all within 1 cell): -ERROR 1 ERROR 2 ERROR 3- Are there line breaks that I can use in Excel in order to achieve this? Help! -- Idz21 ------------------------------------------------------------------------ Idz21's Profile: http://www.excelforum.com/member.php...o&userid=30910 View this thread: http://www.excelforum.com/showthread...hreadid=505844 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Idz21 wrote...
.... So here's an example. I want all this code parsed within one cell. We'll call it A10 =IF(AE1="OK","","ERROR 1") =IF(AE3="OK","","ERROR 2") =IF(AE5="OK","","ERROR 3") So, if a single row has three errors (not equal to OK), then I want the cell to report (all within 1 cell): -ERROR 1 ERROR 2 ERROR 3- Are there line breaks that I can use in Excel in order to achieve this? A10: ="-"&MID(IF(AE1="OK","",CHAR(10)&"ERROR 1") &IF(AE3="OK","",CHAR(10)&"ERROR 2") &IF(AE5="OK","",CHAR(10)&"ERROR 3"),2,256)&"-" |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Harlan Grove Wrote: Idz21 wrote... .... So here's an example. I want all this code parsed within one cell. We'll call it A10 =IF(AE1="OK","","ERROR 1") =IF(AE3="OK","","ERROR 2") =IF(AE5="OK","","ERROR 3") So, if a single row has three errors (not equal to OK), then I want the cell to report (all within 1 cell): -ERROR 1 ERROR 2 ERROR 3- Are there line breaks that I can use in Excel in order to achieve this? A10: ="-"&MID(IF(AE1="OK","",CHAR(10)&"ERROR 1") &IF(AE3="OK","",CHAR(10)&"ERROR 2") &IF(AE5="OK","",CHAR(10)&"ERROR 3"),2,256)&"-" Would I be able to do this for 10 different columns? (Not sure if Excel has limitation. I know it only allows 7 nested IF statements. But I'm not sure what you did is nesting. Just wanted to throw the question out there, while I try your code. Thanks! -- Idz21 ------------------------------------------------------------------------ Idz21's Profile: http://www.excelforum.com/member.php...o&userid=30910 View this thread: http://www.excelforum.com/showthread...hreadid=505844 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Here's what I did Code: -------------------- ="-"&MID(IF(AE23="OK","",CHAR(50)&"ERROR 1") &IF(AB23="OK","",CHAR(50)&"ERROR 2") &IF(Y23="OK","",CHAR(50)&"ERROR 3") &IF(V23="OK","",CHAR(50)&"ERROR 4") &IF(S23="OK","",CHAR(50)&"ERROR 5") &IF(P23="OK","",CHAR(50)&"ERROR 6") &IF(M23="OK","",CHAR(50)&"ERROR 7") &IF(J23="OK","",CHAR(50)&"ERROR 8") &IF(G23="OK","",CHAR(50)&"ERROR 9") &IF(D23="OK","",CHAR(50)&"ERROR 10"),2,256)&"-" -------------------- However, this is what my output looks like: -ERROR 1*2*ERROR 2*2*ERROR 3*2*ERROR 4*2*ERROR 5- The bald 2s, are separating the output, however the spacing is difficult to read. Is there a line break code in Excel? -- Idz21 ------------------------------------------------------------------------ Idz21's Profile: http://www.excelforum.com/member.php...o&userid=30910 View this thread: http://www.excelforum.com/showthread...hreadid=505844 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Yes, you want CHAR(10) not CHAR(50) - just do Find & Replace (CTRL-H)
to change them over. Hope this helps, Pete |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Alright, I got it figured out. Had to use CHAR(10), and format sell to Wrap Text. Thanks a lot for your help! -- Idz21 ------------------------------------------------------------------------ Idz21's Profile: http://www.excelforum.com/member.php...o&userid=30910 View this thread: http://www.excelforum.com/showthread...hreadid=505844 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make an important instruction cell flash in Excel? | Excel Discussion (Misc queries) | |||
how do i name a excel worksheet and make it appear in cell a1 | Excel Worksheet Functions | |||
How do you make an excel worksheet cell a perfect square | Excel Discussion (Misc queries) | |||
How do I make a hard return within a cell in Excel? | New Users to Excel | |||
How can I make Excel Files save as the text appers in a cell, can. | Excel Discussion (Misc queries) |