Copying and Pasting Formulas with no Result as Values still being counted...

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,233
Office Version
  1. 365
Platform
  1. Windows
Hey All

I've got a Worksheet which is doing a VLOOKUP and returning nothing ("") if a Zero is found or an Error occours;

Code:
=IFERROR(IF(VLOOKUP(A2,'BR01'!A:H,8,FALSE)=0,"",VLOOKUP(A2,'BR01'!A:H,8,FALSE)),"")

In the example I'm looking at I've got 7135 rows of data, 51 of those contain data for this column.

When the sheet has been populated I copy and paste it as values to a new Workbook.

The blanks appear to be blank, but they aren't been recognised as such.

If I do a COUNTA on the range then it gives me the full count of rows, 7135

The cells are displaying as blank as I'd expect.

If I use ISBLANK on a cell, it reports FALSE

If I click on the cell and then into the Formula bar there is nothing in there, no spaces, no nothing, it's like a brand new Formula Bar.

When I click out of the cell or press return / enter - The cell gets it's blank status - The ISBLANK formula immediately changes to TRUE and my COUNTA loses a number.

I tried a find / replace on " " but that didn't do anything.

I need these cells to be actually blank, I can't Clear Contents on the Column as there are values in there that I need.

I want to avoid a loop as some of the sheets I produce go into the tens of thousands of rows.

Has anyone come across this before or can offer a solution?

Thanks :)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Copy paste the formulas as values then highlight the column, go to the data tab, press text to columns and then finish. Your counta should be correct now.
 
Upvote 0
Copy paste the formulas as values then highlight the column, go to the data tab, press text to columns and then finish. Your counta should be correct now.

You, Mr. The Fish, are my new hero.

Worked like a charm :)

Any explanation as to what that does or why it happens, or is it just one of those things?
 
Last edited:
Upvote 0
Its just the way excel behaves. You could always use a different formula eg

=SUMPRODUCT(--(LEN(A1:A5)>0))
 
Upvote 0
Fair enough, I've long since learned not to question these things any further than I need to do...

Thanks for your help, I'd never have thought of that :)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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