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

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. 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.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How about
=IF(C21="","",C21)
 
Upvote 0

Forum statistics

Threads
1,214,377
Messages
6,119,185
Members
448,872
Latest member
lcaw

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