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

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
652
Office Version
2016
Platform
MacOS
Hello!

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.
 

Some videos you may like

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

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,669
Office Version
365
Platform
Windows
How about
=IF(C21="","",C21)
 

Watch MrExcel Video

Forum statistics

Threads
1,102,370
Messages
5,486,456
Members
407,548
Latest member
FayP

This Week's Hot Topics

Top