Avatar of Omar Lujan
Omar Lujan

asked on 

Need a function to parse dates

Experts, I need you help!

I have an form for user's to input a date range. There is no data picker unfortunately.  Can you help with a function to sort out the answers?

Here's what I'd like

 Function PPeriod( CELL.Address, Start or End date, Date format)

Usage =PPeriod(A1, START, "mm/dd/yyyy")

User generated imageexample.xlsx
Microsoft OfficeVBAMicrosoft Excel

Avatar of undefined
Last Comment
Omar Lujan
Avatar of Omar Lujan
Omar Lujan

ASKER

Am I asking too much? Any feedback is appreciated ;)

Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

where is the Function PPeriod  ?

what's the expected result? can you elaborate further?
Avatar of Omar Lujan
Omar Lujan

ASKER

Sorry, the request is for someone to write a function that will return Start Date and End Date (columns b & c) from the inputs in col A
Check here for a DatePicker alternative. : https://answers.microsoft.com/en-us/msoffice/forum/all/date-picker-that-doesnt-rely-on-mscomcnt2ocx/7dac42a4-bdef-4f00-aaa4-5c78d32f52ae
For the function you will need the Split Command along with some hefty ifs to make the splitting.
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

@Omar
The input data is inconsistent, and it is a waste of time to automate the required.

I agree with Gustave to manually modify the data to a state where automation will be applied.

Avatar of Omar Lujan
Omar Lujan

ASKER

Thanks everyone
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo