Excel cannot read user input through drop-down list as a Hijri date!

SA_Banker

New Member
Joined
Dec 8, 2013
Messages
7
Respected Members,

First of all, I want to thank everyone contributed to this forum. So much I learned for you!

Hope you can help me on below issue

I searched on the net and here in the forum and found several suggested solutions. Yet, none of it worked for me!

When I use function today() and format it as a hijri date (Saudi Arabia), it converts the date from Gregorian to Hijri successfully.

An issue showed up when I created 3 drop-down lists which are Year, Month and Day. The 3 lists read from sources I created. When a user picks from the 3 lists a date, a cell linked to the output gets updated. The problem is that Excel cannot recognize that the date in linked cell is Hijri and convert it into its corresponding Gregorian date. it gets me totally wrong date. I tried Several suggested solutions such as preceding the assumed date with b1 or a but no success.

[TABLE="width: 272"]
<TBODY>[TR]
[TD="colspan: 3"]Pick Date</SPAN>
[/TD]
[/TR]
[TR]
[TD]1433</SPAN>
[/TD]
[TD]02</SPAN>
[/TD]
[TD]05</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 3"]Today</SPAN>
[/TD]
[/TR]
[TR]
[TD="colspan: 3"]1435-02-05</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 3"]Output</SPAN>
[/TD]
[/TR]
[TR]
[TD="colspan: 3"]29/09/2794</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]


Output=TEXT(DATE(E2,F2,G2),"b2dd/mm/yyyy")

Where E2,F2 and G2 are the Picked date (user chosen from predefined lists)



Successfully doing that, I then convert it to Gregorian and do some calculations.

I just need Excel to accept Hijri Date as an input. For your reference, I attached a file

Excel 2010 - Windows 7 Professional

Thank you in advance!
</SPAN>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Andrew,
Thank you for your prompt replay
I already tried your suggestion and now again. what i do is writing the code ="a"&E2&"-"&F2&"-"&G2 and the result is
[TABLE="width: 111"]
<TBODY>[TR]
[TD="align: left"]a1433-02-05</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
the format is Gregorian, yet it still shows as
[TABLE="width: 111"]
<TBODY>[TR]
[TD="align: left"]a1433-02-05[/TD]
[/TR]
</TBODY>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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