VBA Help - Cell1 = Cell2 But if Cell 1 is blank return blank - Excel 2016
Results 1 to 2 of 2

Thread: VBA Help - Cell1 = Cell2 But if Cell 1 is blank return blank - Excel 2016
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular Johnny Thunder's Avatar
    Join Date
    Apr 2010
    Location
    California
    Posts
    539
    Post Thanks / Like
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

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

    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.
    Regards,
    JT

    Please follow the forum Rules and Guidelines

    To post a screenshot try one of these links

    MrExcel HTML Maker, RoryA addin (Win & Mac) or Borders-Copy-Paste

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    26,729
    Post Thanks / Like
    Mentioned
    458 Post(s)
    Tagged
    45 Thread(s)

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

    How about
    =IF(C21="","",C21)
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •