+ Reply to Thread
Results 1 to 2 of 2

Determining Age But Have the Cell Show as Blank if No Birthdate

  1. #1
    Registered User
    Join Date
    07-13-2022
    Location
    Kelowna, BC
    MS-Off Ver
    2010
    Posts
    4

    Determining Age But Have the Cell Show as Blank if No Birthdate

    I have a list of people with birthdates, some with no birthdates. I created a column to show what their ages are but the blank cells show a number (in my case, the number is "122". What formula do I use to leave the cell blank if there is no birthdate? I have spent hours on this but nothing works.

    The formula I'm using to calculate the ages is as follows:

    =(YEAR(NOW())-YEAR(A2))
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Determining Age But Have the Cell Show as Blank if No Birthdate

    =if(a2<>"",(year(now())-year(a2)),"")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Editing a formula to show a blank cell if another cell is blank
    By nickpavlov in forum Excel General
    Replies: 3
    Last Post: 04-25-2021, 03:18 PM
  2. [SOLVED] SUMPRODUCT When Cell is blank then show blank not Zero 0
    By farrukh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2020, 12:16 AM
  3. [SOLVED] Dragging formula to add two columns, but need to show blank when other cell is blank
    By doesntexist in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-05-2018, 11:18 PM
  4. [SOLVED] Reference cell formula returning 0 when BLANK, need BLANK to show
    By williamc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2016, 04:23 PM
  5. Averaging with a blank cell, needs to show blank calculation
    By Pstreicher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2015, 08:08 AM
  6. [SOLVED] If one cell contains #, & other cell is blank, show message & require blank be resolved
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-19-2012, 02:23 PM
  7. Replies: 1
    Last Post: 09-23-2010, 01:24 PM

Tags for this Thread

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