![]() |
#1
|
|||
|
|||
![]() I have a row of text (not sure if this is relevant, but the text isn't purely typed, it is a formula of concatenations and if statements). Some cells appear blank (although they still have the same ifelse/concatenation formula, but end up being "") So, basically I have a row of formulaic text that looks like this A1 B1 C1 D1 E1 F1 G1 H1 I1 J1 I want to use the range E1 through H1, and write a formula in a different worksheet that will order these by non-blank cells. So, I need to find the first nonblank cell, 2nd nonblank cell, 3rd, and 4th. Because some of these cells are blank, not all 4 of the spots will be fill, but the formula needs to make sure that if there is text in all of them then it will fill in order. =IF(COUNTIF(E1:H1,"?*")>=2,INDEX(E1:H1,SMALL(IF(E1 :H1<>"",COLUMN(E1:H1)-COLUMN(E1)+1),1)),"") (for the first nonblank) =IF(COUNTIF(E1:H1,"?*")>=2,INDEX(E1:H1,SMALL(IF(E1 :H1<>"",COLUMN(E1:H1)-COLUMN(E1)+1),2)),"") (for the 2nd nonblank), etc. I have been trying this array formula, and it works for finding the first two non-blank text values, but when I try to find the 3rd and 4th nonblank values, if there is a blank value, instead of just a blank I am getting #NUM!. Any ideas? |
Tags |
formula help |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Marco | Word VBA | 1 | 11-02-2015 05:08 PM |
![]() |
spc94 | Word VBA | 3 | 06-25-2015 04:46 AM |
Finding varying text in an MS Word file | sergiodcq | Word | 1 | 07-08-2014 03:12 AM |
Finding specific text within body of email | Tammfran | Outlook | 0 | 03-14-2014 02:32 PM |
Finding a text style in a cell | jimbassett | Excel | 1 | 02-10-2010 08:39 PM |