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

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,227
Office Version
  1. 2013
  2. 2010
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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