Solved

# Date identification formula

Posted on 2012-08-20
342 Views
Last Modified: 2012-08-22
Would like to write a formula that identifies the MS# in the formula sheet in the Raw Data sheet and brings back the date the Raw Data sheet is forecasting billing under the "month".  I have one showing you I have found it, and put the date I would want it to fall in, obviously not this formual is the answer.  That would be terribly time consuming.  :)

Thanks,

Pete
Test-File.xlsx
0
Question by:SPXHT
6 Comments

LVL 50

Expert Comment

Hello,

this would be a lot easier if the data types used in the spreadsheet were the same. On the Formula worksheet, you are using real dates in row 1, but on the Raw Data sheet the "dates" are really text. To convert them to dates, insert an empty row before row 1, then enter this formula into cell D1

=DATE(RIGHT(D2,4),SUBSTITUTE(LEFT(D2,2),"/",""),SUBSTITUTE(MID(D2,FIND("/",D2)+1,2),"/",""))

Copy the formula across, copy the results and paste as values into row 2. Now delete row 1 and format the dates with your preferred date format.

Now onto the formula worksheet. The MS# is a number, but the corresponding values in the Raw Data sheet are stored as text. This does not have to be converted, though, since a Sumproduct formula can cater for it. In cell D2 use this formula

=SUMPRODUCT(('Raw Data'!\$A\$3:\$A\$130=TEXT('Formula worksheet'!\$B2,"0"))*(MONTH('Raw Data'!\$D\$1:\$AZ\$1)=MONTH('Formula worksheet'!D\$1))*(YEAR('Raw Data'!\$D\$1:\$AZ\$1)=YEAR('Formula worksheet'!D\$1))*'Raw Data'!\$D\$3:\$AZ\$130)

Copy across and down. You may want to format zero values not to show, using a custom format.

See attached.

cheers, teylyn
27835685-Test-File.xlsx
0

Author Comment

Teylyn,

This looks correct.  I just got in tonight and am going to call it a night.  I have some additional requirements if its not to much of a trouble.  I will send it to you 1st thing in the morning.

Thanks again,

Pete
0

Author Comment

Teylyn,

Could you help me write the formula from the Raw Data tab in the highlighted yellow section.

Thanks,

Pete
27835685-Test-File.xlsx
0

Author Comment

I've requested that this question be closed as follows:

Accepted answer: 0 points for SPXHT's comment #a38314855

for the following reason:

Job well done!<br /><br />Pete
0

LVL 50

Expert Comment

Pete, I think you meant to close the question, but you probably selected your own comment by accident.
0

LVL 50

Accepted Solution

Try in C2 and copy down

=IFERROR(INDEX('Raw Data'!\$D\$1:\$AZ\$1,MATCH(99^99,OFFSET('Raw Data'!\$D\$1:\$AZ\$1,MATCH(TEXT(B2,"0"),'Raw Data'!A:A,0)-1,0),1)),"")

See attached.

cheers, teylyn
27835685-Test-File.xlsx
0

## Join & Write a Comment Already a member? Login.

### Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

#### 728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

#### Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!