Consulting

Results 1 to 3 of 3

Thread: If Formula with Year Function

  1. #1
    VBAX Regular
    Joined
    Jan 2018
    Posts
    32
    Location

    If Formula with Year Function

    hi Friends,

    i am struggling with the below formula not sure why not getting the results

    i need if Cell C2 has a date then year would populate in A2 else blank i have tried the below formula

    =IF(C2=""," ","=YEAR(C2))")i am getting = Year(C2))") in results, Kindly help me with this

  2. #2
    Use this instead:

    =IF(C2=""," ", YEAR(C2))

  3. #3
    VBAX Regular
    Joined
    Jan 2018
    Posts
    32
    Location
    thank you so much
    and what of i need to use this same as function via vba

Tags for this Thread

Posting Permissions

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