Xlookup currency/date format

kvmike

New Member
Joined
Feb 28, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using xlookup to pull some information from another sheet in the same workbook.
The 'return array' is formatted as currency (not sure if this matters), but its not pulling as currency. Its pulling as a general number, but when attempting to format the destination cell to currency it does nothing. I am also having the same issue with another Xlookup not allowing me to format the result as a date.

Any help is much appreciated :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,898
Office Version
  1. 365
Platform
  1. Windows
Excel formulas only return the values formulas, not the formatting from other cells.
But you should be able to format the results in the resulting cell, unless you formula is coercing the result to text.
Can you post your formula?
 

kvmike

New Member
Joined
Feb 28, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Excel formulas only return the values formulas, not the formatting from other cells.
But you should be able to format the results in the resulting cell, unless you formula is coercing the result to text.
Can you post your formula?
Hi, i managed to solve half of my problem.

=XLOOKUP(H50,VMB!B:B,VMB!D:D,"",0)&""

&"" was forcing the formatting issue, which i have now removed.

In terms of the same formula pulling a date in a separate field, if there is no search criteria to go if it is defaulting to giving me a result of 00/01/1900.
How would i go about making sure it just returns a blank result in this case?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,898
Office Version
  1. 365
Platform
  1. Windows
Do you mean like:
Excel Formula:
=IF(H50="","",XLOOKUP(H50,VMB!B:B,VMB!D:D,"",0))
 
Solution

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,898
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
Glad I could help!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,256
Messages
5,852,924
Members
431,532
Latest member
Lroy9827

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
Top