Xlookup currency/date format

kvmike

New Member
Joined
Feb 28, 2022
Messages
11
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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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?
 
Upvote 0
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?
 
Upvote 0
Do you mean like:
Excel Formula:
=IF(H50="","",XLOOKUP(H50,VMB!B:B,VMB!D:D,"",0))
 
Upvote 0
Solution
You are welcome.
Glad I could help!
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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