VBA Help - Cell1 = Cell2 But if Cell 1 is blank return blank - Excel 2016

Johnny Thunder

Well-known Member
Apr 9, 2010
Office Version

I am kinda stuck on something so I will explain what I am doing.

I have a Form that looks kinda like a Web portal with 18 fields/dropdowns that a user can populate.

This tool also has the ability to recall these fields if the user knows the tracking number, then all the fillable fields will auto-populate for the user.

So how I am doing this, for speed, I have a helper cell beneath each fillable field with a Index/Match formula, so as the user drops in the tracking number all relevant fields are filled in.

My Problem
- The formulas that are static and just waiting have an ISBlank line to ensure they don't return a blank, the problem is that when I say Cell C19 = C21 (21 being the cell with the static hidden formula) even if C21 is blank C19 brings back a 0.

Is there a way to get around this?

So, I know the obvious would seem like, "Why not just have the code put the formula in C19, well for 18 Cells and even having Calculations switched to manual and screen updating off, the code takes roughly 18 seconds (Crazy I know!).

So hence, the more basic approach helper cell and link to it. Any Ideas?

I am trying to do this without a loop or IF statement if possible unless I don't have to write the IF Statement more than once and it can process instantly and not cause any further lag.

Any help is appreciated.


MrExcel MVP, Moderator
Jun 12, 2014
Office Version
How about

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...