Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
422
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I have this very complex formula:

1654673696743.png


It returns a date value from a different sheet. However, it is returned in a number format, rather than a date format.

Any idea how to fix this? I believe that I can use the TEXT() formula, but I cannot figure out how :(

If anybody can help me please let me know!

here is the full formula:

=IF($B3="","",IFERROR(INDEX(INDIRECT("'"&$E3&"'!$E$3:$E$75"),MATCH(1, (INDIRECT("'"&$E3&"'!$A$3:$A$75")=$B3)*(INDIRECT("'"&$E3&"'!$C$3:$C$75")=$E3),0)),""))
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
a quick guess
=IF($B3="","",IFERROR(text(INDEX(INDIRECT("'"&$E3&"'!$E$3:$E$75"),MATCH(1, (INDIRECT("'"&$E3&"'!$A$3:$A$75")=$B3)*(INDIRECT("'"&$E3&"'!$C$3:$C$75")=$E3),0),"dd.mm.yy")),""))
 
Upvote 0
Solution
a quick guess
=IF($B3="","",IFERROR(text(INDEX(INDIRECT("'"&$E3&"'!$E$3:$E$75"),MATCH(1, (INDIRECT("'"&$E3&"'!$A$3:$A$75")=$B3)*(INDIRECT("'"&$E3&"'!$C$3:$C$75")=$E3),0),"dd.mm.yy")),""))
Thank you so much BSALV!! It worked out :) Much appreciated :D
 
Upvote 0
Why not leave it as a date, rather than converting it to text? Dates should generally be left as such.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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