# Solved: Show values of non-blank cell

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

#### news

Is there a formula where it will show the text within a range of data?
For example "a1" will show 1-10, "a2" will show 21-30.
columns
a b c d e f g
Row1 0 1-10 0 0 0 0
Row2 0 0 21-30 0 0 0

#### etaf

Wayne
Moderator
is the text only in one cell in the row and what about numbers

row 1 = 9 , 12, abc , 1, 0,0,0,0, 1-10

do you want to show just abc and 1-10

#### news

Only "1-10" is required to show. a b c d e f g is column in the illustrations

#### etaf

Wayne
Moderator
but would the other characters exist at all

you could use conditional format to highlight the cell with text
use
istext()
in a conditional format

#### Attachments

• 9.9 KB Views: 58

#### news

Refer to your attachment as illustration of what I need.

For cell G3, it will scan through A3 to E3 to capture & display "abc". What formula will allow G3 to have such function?

For my case, G3 will be displaying 1-10 or 11-20 or 21-30 and so on. Only one cell between A3 to E3 will have such 'value'.

Hope above is clearly illustrated.

#### etaf

Wayne
Moderator
does this work
=LOOKUP("istext",A3:E3)

Only one cell between A3 to E3 will have such 'value'.
only one TEXT value ?

#### news

Yes, I will try it. Thanks.

#### Garf13LD

=INDEX(A3:E3,1,MIN(IF(A3:E3>0,COLUMN(A3:E3),"a")))

Make sure to enter it with ctrl+shft+entr, cos it's an array formula

#### news

Hi etaf,

Hi Garf13LD,
You solution don't work too...

Can anyone share with me how to attach the excel so that you can view the data & come out with the best solution?

#### etaf

Wayne
Moderator
To upload to the forum, open the full reply window ("Go Advanced" button) and use the Manage Attachments button to upload it here.
Full details are available here http://library.techguy.org/wiki/TSG_Posting_a_Screenshot

make sure its dummy data - as you are on a public forum and google will index

#### news

Hi,

Please refer to the attachment, column B.

I have input a formula from B2 to B8, it works. However, the formula doesn't work from B9 downwards.
Any solution?

Because I'm not so good in formula, I input data from K to T.

The concept is if the number in Column A2 (downwards) is 1, B2 will show "1-10"; if 12, B2 will show "11-20" and so on.

#### Attachments

• 10.3 KB Views: 52

#### etaf

Wayne
Moderator
sorry, I still do not fully understand what you are trying to do

BUT in the spreadsheet - K to T is all text as you have entered "0" so thats text and not a number - which is why the formulas do not work

if you change the formula from "0" to just 0
then the lookup works - see attached file

Not sure what you really want

#### Attachments

• 10.3 KB Views: 37

#### Garf13LD

B2=INDEX(K2:T2,1,MIN(IF(LEN(K2:T2)>1,COLUMN(K2:T2)-COLUMN(J2),"a")))

#### news

Hi etaf,
It really works..... thanks.....

Hi Garf13LD,
I tried your formula and it return "#value!"....

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

As Seen On