Excel Formula Issue

rcolving

Board Regular
Joined
May 23, 2002
Messages
124
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
I have a Lotus spreadsheet that was created before I started here. I am attempting to recreate it in Excel. I have a Field I a dynamic field G6 which the user puts a date in. When they do this Field B10 needs to be populated with the number in the corresponding date field that is on sheet1 of my data input. For example: if nov 30 2004 is typed into G6 I want B10 to be populated by the field on my input sheet for Nov 2004. If 12/31/08 is typed into G6 I want B10 to be populated by the corresponding number in the field on my input sheet for that date.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I've attempted to use vlookup but it is giving me a #N/A. My formula is as follows

=VLOOKUP(G6,Sheet2!A2:B121,2,FALSE)

G6 is the date entered
Sheet2! A2:B121, is the data and date columns, Column A being the dates, Column B the data.

2 is the column number the data is in

False because I want an exact match.

What am I missing?
 
Upvote 0
first thing you should do when you get an error on a vlookup is do a manual search to ensure that what you're looking up is in the data
 
Upvote 0
Doesnt appear to be anything wrong with your formula or application of it.


Perhaps your dates look like dates, but are actually text.


If you send me a p.m with your e-mail, I'll send you a sample sheet.
 
Upvote 0
What format does the date take in column A? Let's say as an example they are dd-mm-yyyy, then check to see if this works:

=VLOOKUP(TEXT(G6,"dd-mm-yyyy"),Sheet2!A2:B121,2,FALSE)
 
Upvote 0
All is working now thanks everyone for your help. Now does anyone know how to obtain a total to date based on a fiscal year starting in July?
 
Upvote 0
I have a formula that is supposed to retrieve numbers from a data sheet that will look at the date entered, find all fields that fall within the dates of that fiscal year. for example

If 5/2008 is entered, the fiscal year is 7/2007 to 6/2008. the formula should retrieve and sum all numbers entered on the data sheet from 8/2007 to 5/2008, however, it is not working correctly.

The data sheet has records from 2001 through to current. I've got a formula that works for Jul through Dec. but won't work for Jan through Jun. The formula is

{=SUM(IF('Input Sheet'!$B$2:$DQ$2>DATE(YEAR(F7),MONTH(4567),),IF('Input Sheet'!$B$2:$DQ$2<DATE(YEAR(F7),MONTH(F7)+1,),'Input Sheet'!$B$5:$DQ$5)))}

Any ideas would be appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top