How do I return a value if one cell contains a date value and the cell above it is blank?
How do I return a value if one cell contains a date value and the cell above it is blank?
What is your criteria?
What answer if criteria is True?
What answer if criteria is False?
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
I have a list of dates and next to the dates and I want an equation to only return the top date of the list. So it would be something like =IF(AND(A2=*a date*,A1=*blank cell*),A2,"")
Maybe this:
=IF(AND(A2=DATE(2017,10,30),A1=""),A2,"")
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.
Not looking for a specific date, just if it contains a date
A date as opposed to what? What other type of value could be in the cell?
As opposed to a blank cell...
welcome to the forum. the unfortunate part is that Excel recognizes date as integers & time as decimals. to verify, type in 1jan2013 in A1. and 12 pm in B1. Format both cells to General. you will see that A1 is 41275 (meaning 41,275th day from 1 Jan 1900) & B1 is 0.5 (1/2 a day).
since you can't verify if it's a date, the best you can do is to check if A2 is a number.
=IF(AND(ISNUMBER(A2),A1=""),A2,"")
or if you are certain it's between a certain date (2010 to 2017 for eg), then:
=IF(AND(A2>=--"1jan2010",A2<=--"31dec2017",A1=""),A2,"")
or if you say it's as opposed to a blank cell (no other possibilities of numbers or text), then:
=IF(AND(A2<>"",A1=""),A2,"")
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Perfect! Thank you!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
PL ignore . I have posted this in forum.
Request your guidance for counting blank cells with multiple conditions. I have a column "E" with town names and another column "F" with type of town and I want to count the number of blank cells in column "G" against the town and type.
Last edited by Harshaman; 12-07-2017 at 03:16 AM. Reason: I have posted the Q in the forum
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks