Cell formatting issue??

taniab

New Member
Joined
Jun 8, 2015
Messages
42
I have this formula

=VLOOKUP($A169,SSummarisedData!$11:$268,50,FALSE)

However when the cell is blank, sometimes it returns a 0 and other times it returns a blank.

I need to count any cells that are not blank or have a 0

If the cell has not data, it should return all 0's or all blanks (I don't really care) but it is returning either!

The problem is I can't count the non-blank fields using CountBlank, it won't recognise those cells for some reason. Is it something to do with formulas?

When I look at the data in the Lookup sheet, it all looks the same (blank) I can't work out why sometimes it returns 0 and sometimes blank.

In the example:
This formula
=VLOOKUP($A169,SSummarisedData!$11:$268,50,FALSE) returns a blank field
This formula returns a "0"
=VLOOKUP($A169,SSummarisedData!$11:$268,62,FALSE)

The cell numbers are at the top of the sheet for reference purposes in the attached pic
 

Attachments

  • Capture.JPG
    Capture.JPG
    121.4 KB · Views: 8
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What about
=IF(LEN(VLOOKUP($A169,SSummarisedData!$11:$268,50,0))=0,"",VLOOKUP($A169,SSummarisedData!$11:$268,50,0))
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top