+ Reply to Thread
Results 1 to 14 of 14

How to check if a cell exist

  1. #1
    Registered User
    Join Date
    10-08-2021
    Location
    Pittsburgh Pa
    MS-Off Ver
    Ms office pro plus 2019
    Posts
    5

    How to check if a cell exist

    I have an excel spreadsheet that starts with one row and then continues with an additional row each day.
    I want to include a formula in this spreadsheet that uses a cell that is weeks old meaning that when I start this spreadsheet that cell does not exist but after several week it does. Is there some sort of “IF” function I can use so that my formula will not work if this cell does not exist?

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to check if a cell exist

    You are so vague with your question it is difficult to give an answer

    You can have spreadsheets that grow as more data is added to them, and you can have formulas that will automatically adjust when the sheets do grow.

    Firstly the cell will exist, it may be empty. If the cell is weeks old why will it be added in the future?
    Is it a fixed cell eg it will be in A1 or will you be looking in a column to see if the value has been populated.?

    A workbook as per the yellow banner will get you a better answer

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,683

    Re: How to check if a cell exist

    Welcome to the forum.

    Provisionally, yes, but we need more information.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    585

    Re: How to check if a cell exist

    Agree with what davsth says.
    There seem to be tons of way to tackle what you're describing but it depends on the specifics.

    On the face of it, it sounds as if you just need some counter or assign a date/time stamp once a cell is populated.
    And rather trying to figure out if a cell exists or doesn't (all cells exist in a new workbook), your function should check if the cell has e.g. a value.

  5. #5
    Registered User
    Join Date
    10-08-2021
    Location
    Pittsburgh Pa
    MS-Off Ver
    Ms office pro plus 2019
    Posts
    5

    Re: How to check if a cell exist

    If my spreadsheet has one row added per day. How can I have a formula check on a cell 30 days old when I may have only one row. My formula would be be looking for a cell the does not exist for 30 days.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,683

    Re: How to check if a cell exist

    Maybe use the MIN function.

    Waiting to see your workbook. Please attach it so that we an better advise.

  7. #7
    Registered User
    Join Date
    10-08-2021
    Location
    Pittsburgh Pa
    MS-Off Ver
    Ms office pro plus 2019
    Posts
    5

    Re: How to check if a cell exist

    I am sorry but I will not attach my workbook. It is confidential. If you cannot answer with the information
    I have already given you, i thank you for trying and will say good by.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,683

    Re: How to check if a cell exist

    I am not asking to see confidential data. The instructions explain how to create a small desensitised subset of your real data - if you can’t or won’t do that, or won’t show us anything at all, then it’s going to be very, very difficult, probably impossible, to help you. I am sorry if this fact offends you - at least you have been offered help.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: How to check if a cell exist

    Are you saying you cannot supply sample with confidential data removed ? a limited number of rows (10-20) is all that is required so doing a mock-up to demonstrate the requirement should not be too onerous.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    Registered User
    Join Date
    10-08-2021
    Location
    Pittsburgh Pa
    MS-Off Ver
    Ms office pro plus 2019
    Posts
    5

    Re: How to check if a cell exist

    I think I am the problem on this request. I forgot to indicate these formulas are part of a Macro using Relative Reference. I started this worksheet well before I started the Macro. So in the Macro I reference a cell that goes back 30 days that works fine for now. But if I wanted to start a new worksheet using my current Macro, the Macro would be referencing cells that do not exist. Is there a way to get around this problem?

  11. #11
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to check if a cell exist

    Yes there is a way, probably several. but without a spreadhsheet or the macro code it is very hard for people to help you. We do not even know what "these formulas" are! We are all pretty much in the dark

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,683

    Re: How to check if a cell exist

    I’ve moved this thread to the VBA section.

  13. #13
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,259

    Re: How to check if a cell exist

    Try a formula similar to this one:
    Please Login or Register  to view this content.
    Artik

  14. #14
    Registered User
    Join Date
    10-08-2021
    Location
    Pittsburgh Pa
    MS-Off Ver
    Ms office pro plus 2019
    Posts
    5

    Re: How to check if a cell exist

    Thank you I will try it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Check if a cell exist and if other data from the row matches
    By andro007 in forum Excel General
    Replies: 1
    Last Post: 07-21-2020, 02:17 PM
  2. [SOLVED] Check if cell value exist in another sheet column, msg box
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2019, 03:41 AM
  3. [SOLVED] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  4. Check if Data already Exist
    By weeeee0713 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2014, 10:47 PM
  5. [SOLVED] Check if a combobox exist in a cell or not
    By polooop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 06:06 AM
  6. when typing to a cell check if this number exist in a range of cells (in sheet 2)
    By gtserkou in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-28-2008, 01:18 PM
  7. Check if a folder exist
    By loopoo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-07-2005, 08:10 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1