How to stop "Text" function overriding conditional formating

JpMakako

New Member
Joined
Mar 24, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I recently developed a lambda that basically uses the TEXT function to format values (date, currency, etc) depending on the data Im pulling to a specific cell: Example: I have a list of apartment units and i want to know the date they were sold, the amount (value), phone number pulling it from a data base with a simple XlookUp. I used the text function to show the proper formatting. Then I tried to insert a conditional formatting to show differences in values with color aid. The thing is the colored background is overwritten when using TEXT. Is there a way around it?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You need to post some sample of your data and the condition you are using in conditional formatting
 
Upvote 0
Libro1
ABCDEFGHI
1
2DataBoth Conditional Format
3DateCurrencyTextNo FormatFormat
4UnitDateValuePhoneUnitDateDate
510114/04/2018$ 756.856,00XXX-XXXXXX11014320418-04-14
610216/12/2017$ 575.352,00XXX-XXXXXX21024308517-12-16
72015/11/2017$ 532.673,00XXX-XXXXXX32014304417-11-05
820220/05/2018$ 648.128,00XXX-XXXXXX42024324018-05-20
930114/04/2018$ 795.728,00XXX-XXXXXX53014320418-04-14
103023/11/2017$ 793.177,00XXX-XXXXXX63024304217-11-03
11
Hoja1
Cell Formulas
RangeFormula
H4H4=LOOKUP(G4,B4:D4,B3:D3)
G5:G10G5=XLOOKUP(F5,$A$5:$A$10,OFFSET($A$5:$A$10,0,XMATCH($G$4,$B$4:$D$4)))
H5:H10H5=IFS($H$4="Currency",TEXT(G5,"$ #,#0.0"),$H$4="Date",TEXT(G5,"yy-mm-dd"),$H$4="Text","@")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H5:H10Other TypeColor scaleNO
G5:G10Other TypeColor scaleNO
Cells with Data Validation
CellAllowCriteria
G4List=$B$4:$D$4
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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