# Using VLOOKUP To Display Date If Present, If Not Display Today's Date

Feb 26, 2009

I'm currently using an IFERROR, VLOOKUP formula to display an availability date for a product.

Atm, it reads some like this

ADVERTISEMENT

## Find Day Of Week Of Today And Display Date Of Selected Day?

Mar 9, 2014

I may be making this more complicated than it needs to be but I can't seem to figure it out. The goal of this spreadsheet is for General Managers of a restaurant to give feedback about food deliveries. These deliveries usually come on Monday, Thursday, and Saturday, but could for a list of reasons come on any day of the week. I want to automatically populate as much information as possible without requiring GMs to remember and enter dates.

A1 is =TODAY()
A2:A5 is a drop down where the GM selects the day of the week the delivery arrived. i.e. MON, TUE, WED, etc. I want the corresponding date of the past week to auto-populate in this cell (or even the adjacent cell if necessary) once the day is selected. For example, if today is 3/8/2014, when MON is selected in A2, I want the cell to automatically add "3/3/2014," making the entire cell read "MON 3/3/2014."

So if said GM is filling in this spreadsheet on a Saturday, and I want to display the date of the previous Monday, I need to find the day of the week of A1 (WEEKDAY function), and make A2 = A1-5.

If today is a Friday, it would be A2=A1-4, and so on for the 7 days of the week.

Then I would need to do all of this for if a Tuesday is selected in the drop down box, meaning IF(Saturday)Then A2=A1-4, etc...

I was trying to string together IF statements like this:

=IF(WEEKDAY(TODAY()=7),A1-5), IF(WEEKDAY(TODAY()=6),A1-4)

It works when I do only the first IF statement, but when I add another it returns #VALUE. I thought that excel would find the first true value and stop evaluating.

## Date From Internet Does Not Display Year And Can't Be Converted To Date

Jan 8, 2013

I have a document that I downloaded some data from the Internet "Kronos" and within this data there is a column for date. This column is formatted as Date (01/08/13), but it only displays the date as Sun 1/01. It's missing the year, which it should be 01/01/12. I have tried to use TEXT function to convert it to month name and day name using TEXT(N4, "mmm") and Text(N4,"ddd"), but I still getting Sun 1/01. I have also tried to use Text to columns to split this date but, it does not work. Is there any other way I can convert this date into m/d/yy?

## VLookup Today Date To Determine File Name

Aug 21, 2013

Im working on a document for work, its sort of a learning hobby tbh, something i want to learn. Im trying to do things myself from the books etc, vids from the net. This one i cant find the answer to so before i go ahead i would like to see if it can be done

Basically, we have a few documents that change every day. we get the raw data, and delete coloumns, change the size to autofit width etc...

(im creating a main macro to do that now)

But with that data i need to..

open a new book (but the book name is never the same... book1, book2 as you know)
paste the data
save it

.... the file name! needs to be something like this "Department 20130401" which i saved on 01/04/2013

if i did the document on 10th september.. it would be "Department 20131010"

I have Coloumn A with the dates 01/01/2013 etc
and Colounm B with Department 20130101 etc
Cell ("I1") has =Today() in it

could a macro change the filename from a vlookup result?

## Sort Table In Date Order But With The Date Nearest To Today's Date At The Top

Nov 19, 2009

I have data going in to a small table which has some empty rows as that data is not yet available... My problem is, I need to sort this table in date order but with the date nearest to today's date at the top...

The sort function puts oldest at the top or oldest at the bottom which is no good for what I need...

I use xl 2003.

## Display Account Numbers Where Stock Items Are Not Present?

Sep 3, 2013

I have a list of account numbers with stock attached to each account. I want to show all account numbers that do not have any one of 5 items attached to it. See my attached (simplified) example, show all accounts that dont have Bananas or Oranges, account number 222 and 444 would be displayed.

## Display The Date On Top

Jun 29, 2009

I basically want the end result like Column Q shows. If there is a value (doesn't have to be 1), display the date on top. What I did to get this work was for each cell I put a IF statement. Then I summed it up and made it Text formatted with mm/dd/yy.

## Display Annual Date

May 26, 2014

A1 is a date

I need B1 to show 1 year from A1, unless it has already passed, in which case I will need additional years added until the date being displayed is either today or in the future.

For example, if A1 is 1/1/2010, B1 should be 1/1/2015

## Date Does Not Display Properly?

May 6, 2013

I have formatted cells to date but when I enter in a date of 020413 (Feb 04, 2013) my reslut shows as 11/20/55. I have a coworker who is having the same problem (but hers displays even a different date) so was wondering if there is a setting in excel that I don't know about.

## Display The Day By Inputting The Date?

Feb 20, 2007

for example.

I type "20 Feb 07", and excel formatting auto changes that to "Tuesday 20 Feb 07"

I actualy need this for a more complex formula...

if A1= any date from monday to sunday of one week, then A2= mondays date+21

the only way i can comprehend this is to make a formula that says if A1= a monday A2=date+21, A1= a tuesday A2=date+20, etc.

## Date Display Manipulation

Nov 14, 2012

Below I have a table with dates. The actual dates will be added in over time. I want to display the amount of days in the column btwn planned and actual but since it is subtracting a date from a blank cell, the #VALUE function is displayed. What function can I use to tell excel to keep the cell blank until a value other than #VALUE appears.

PLANNED Spud
ACTUAL Spud
Days

5/30/12 12:00 AM
5/30/12 2:30 AM
(0)

12/15/12 12:00 AM
#VALUE!

1/19/13 12:00 AM
#VALUE!

2/23/13 12:00 AM
#VALUE!

## Display Day For The First Date Of Month?

May 5, 2013

If E1=TODAY()

How do I get E2 to display the Day, for the first date of that month?

So today, E1 would = 5/5/13 and E2 would = Wednesday

When E1 =6/5/13 I want E2 to display Saturday, and continue to automatically update with the current date.

## Display Weekday When Date Is MM-DD-YYYY

Oct 22, 2007

I'm looking to display the weekday in a cell, based on the date in cell A1. I know the code I can use is

## Date Display Like Day/Month/Year

Aug 17, 2009

Im having a little issue with the way the dates are layed out.

I have a condition format =AND(RC5="No",TODAY()<RC4+10)

And withen the cell's the date is located, If the cell is writen Month/Day/Year everythink works.

Though i have always written dates like Day/Month/Year.
ive tryed to do go to the number format thing and change it, though that just seams to change the end display not the way excel handles the date. it there a system level change that can be made of change somethink.

## Display Date Upon Last Formula Change?

Dec 19, 2011

I am using a worksheet change event to display the date and time that certain cells are manually changed. However, I would also like this to happen when a cell displaying a value based on a formula changes.

## Formula To Display Same Date For All The Months

Jul 31, 2013

I have a excel file which deals with accounting systems. It has the Loan date in Cell B6 and Number of dues in cell B7. I need the column from B11 : B34 to be filled with due dates for every month. Suppose if the loan date is 12/05/2013 and number of dues is 10 then in B11 I should get 12/06/2013 , B12 it should be 12/07/2013 and B13 should be 12/08/2013 and so on based on the number of dues.

## Negative Time Or Date Display As ########

Apr 29, 2008

I have one service level sheet where i used data in time format. I am getting error while using this sheet. I will just explain it in simple way...............

Please find below mentioned details.

Cell C D F

1 23:04 23:13 00:03

In cell G1 i have formula to get time difference between cell C1 and D1 and its give me difference between these both time as 00:09.

Formula is =IF(OR(ISBLANK(C1),ISBLANK(D1)),"",D1-C1)

In cell H1 i have formula to get difference time between cell C1 and F1.

Formula is =IF(OR(ISBLANK(C1),ISBLANK(F1)),"",F1-C1)

But in Cell H1 i am getting Error as Negative time or date display as ########

Is there anyway where i can get Exact time diffrence between Cell F1 and Cell C1

## Display Date/Time In English

Oct 16, 2006

How to display following, that the day and month will apear in English, w/o relation to current regional settings:

Format( Date, "Long Date") & ", " & Time

## Display Last Update Date & Time

Nov 9, 2006

I want to display on a spreadsheet, "last update date & time"; Is there a function to do it??

## VLookup Query: Seperate Sheet To Identify Entries That Have Today's Date In Column I And Then List Them In Worksheet 3

Nov 20, 2009

I have designed a spreadsheet and i want a seperate worksheet (sheet3 for arguments sake) to retrieve customer data from worksheet 2 - The data I required is the customer data currently contained on columns A - H and there are around 50 rows. (A2 - I51). I want the seperate sheet to identify entries that have today's date in column I and then list them in Worksheet 3.

Im having difficulties with the syntax for retrieving the data from a seperate worksheet. There may be several entries for the same date and I want to the seperate sheet to report all customer data in worksheet 3? Also, if the date falls on a weekend I would like to retrieve any data for the weekend on the Monday so all cases can be reviewed.

## Display Current Year With Renewal Date

Mar 10, 2014

I currently have a spreadsheet with 500ish renewal dates. I need to be able to take the renewal dates (dd-mmm) in column B and then display the current year with renewal date, if the date has not yet come, or the next year with renewal date, if the date has already passed in column C (dd-mmm-yy).

## Date Filter Display In Pivot Table

Jun 16, 2014

I have a question with regards to the display of the Date filter in a pivot table I am making.

As it stands, the filter function is displaying like this : date 1.JPG

I am looking for the filter to look more like this : date 2.JPG

I believe that I have all the dates in the source table formatted as "Date".

## Display Number Of Years Based On A Date

Mar 28, 2009

Right now, in a column I would like to display an number (length of employment) based on the hire date.

In one cell the employee's hire date is entered. In a column of other cells the pay period ending date is displayed and in another column the length of employment is displayed.

Example:

03/17/2000

03/01/2009 8
03/15/2009 8
03/29/2009 9
04/12/2009 9
04/26/2009 9

How would I create a formula in the length of employment cells that would indicate the correct number of years based on the hire date and adjusts when the pay period date passes this hire date?

## Display Test String Depending On Date

Mar 31, 2009

I need a forumla that will dispay a set text message in a cell based on the date in another cell.

I need cell A1 to display the text message "Forwards Booking Date, No Action Required" Where cell A2 has a date entered in it that is the same as todays date or greater - i.e. in the future.

And if the date is in the past for no text message to appear.

## OR Or IF Adding: Display A Date 3 Months In Future?

Nov 19, 2009

Three columns.

A - Date last checked
B - Due Date
C - Actual Date checked

Currently column B simply has =A+84 and will display a date 3 months in future.. Great..

However now i want column B to still display the 3 month date - unless there is a date in C, whereby i want B to then display OK. SO what im sort of needing is =A+84 (or if somethings in C then "OK")

## Scroll Over A Cell That Can Display The Name From The Row Along With The Date From The Column

Nov 10, 2008

Is there a function/routine/etc. that when I scroll over a cell that I can display the name from the row along with the date from the column. (I know I can do it if I click the cell.)

Objective: Once I zero in on the desired cell I click it to schedule the person to work, count their hours, add to weekly and monthly totals, etc. etc. etc.

## Display Date, Excluding Weekends & Holidays

Oct 10, 2008

I have a report that starts with a desired date and generates dates backwards on when certain releases should come out. I would like the code to see the date, move it back a week, check to make sure it's not a weekend or holiday, then post it in the cell below. If it does happen to land on a weekend, it should then be the Friday before the weekend. If it is a holiday, it should be the date before the holiday, as long as it is not a Sunday (or another holiday).

Attached is the workbook that I'm using. I'm starting with the desired date 'B7' and using the Holidays in a seperate worksheet. I know that in the current example, nothing will land on the weekend, unless the holiday pushes it back to one.

## Date Formula To Display In Text Without Numbers

Dec 18, 2009

I want to show a date like 18-12-2008. This wil normal work with =()TODAY-356

But when I output text with this formula it will only show numbers:

="date "&TODAY()-365&""

I want to subtract 1 year of today.

I tried to set my cell to the date format but this did not work.

## Create Formula To Display Text With Date

Feb 16, 2007

I have this formula =TEXT(inventory!I2,"mmm-yyyy") which takes the date from another spreadsheet, but anytime that the date is missing, it susbstitutes for Jan-1900. Is there any way to revise the formula to leave the missing dates blank in the cell? For example, if the date is missing on the other worksheet, in this case, the inventory worksheet, is there any way for a blank to appear, instead of the Jan-1900? Also, anyway for this formula to spell out the month, and not just the abbreviation?

## Display Result Of Date Function In Label

Dec 13, 2007

I am trying to display the result of a custom VBA function as a label on a userform. The function is called and takes arguments from three text boxes on the userform. I attached it to the exit parameter. (This may be part of the problem; I'm not sure).

There seem to be two problems, first all the text boxes don't always contain data, but because the arguments are not optional, I get a type mismatch error when the code runs (I tried switching some of them to optional, but it didn't help as you can see from my 'commented code).

The other problem is that even when all the arguments seem to be met (i.e. the text boxes all have data), I still get a compile error that the argument is not optional. This only happens if I try and pass the result to some aspect of the userform. As you can see from the last coded line in the custom function, if I assign it to a range on the worksheet, it functions fine.

Private Sub txtStartDate_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim StartDate As Date
Dim EndDate As Date
If IsDate(Me.txtStartDate.Value) Then
StartDate = Me.txtStartDate.Value
Me.txtStartDate.Value = Format(StartDate, "m/d/yyyy")
Else: MsgBox "Please enter a date"
End If.............

Copyrights 2005-15 www.BigResource.com, All rights reserved