Conditional Formatting based on 2 sets of criteria?

Ian1976

Board Regular
Joined
Feb 4, 2016
Messages
139
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm using this formula...

=IFERROR(VLOOKUP(AG3,A2:T89,200)," ")

Is there a way to also check if the text in AG3 starts with 319 and the result returned from A2:T89 was >499 then colour the result if conditons are met in red?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Another way
Select T2:T89 and use this formula
=AND(LEFT(AG$3,3)="319",A2=AG$3,T2>499)
 
Upvote 0
Thanks guys, also that should have read 20,0),” “) bloody keyboard playing up! ?
 
Upvote 0
Thanks guys, also that should have read 20,0),” “) bloody keyboard playing up! ��

Hi,

Also, shouldn't that be a "" (BLANK), rather than a " " (SPACE)?

=IFERROR(VLOOKUP(AG3,A2:T89,20,0),"")
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
No thank you guys! I love the knowledge on here and I love playing with my spreadsheets at work to make them more efficient and user friendly!

Jtakw - well spotted! ;)
 
Upvote 0
Morning guys,

I'm using this conditional formula,

=AND(LEFT(Z3,3)="319",IFERROR(VLOOKUP(Z3,M2:XEX89,20,0),""))

and it's filling in the cell with a colour, how do I apply this to a range, Z3:AU12, as it only seems to be checking AG3 cell info?

could you explain how the formula works so I can also adjust it to highlight results <499

Thanks
 
Upvote 0
Sorry that was a rubbish post and I cant see how to edit it! So I'll try again...

I have a table Z19:AU28 Which is populated with this formula, =IFERROR(VLOOKUP(Z3,A2:T89,20,0)," ") I have a conditional format set up to detect results that are less than -800 but want another conditional formula to check another table Z3:AU12 for cells that start with 319 and are less than -400!

Hope that makes sense and if possible can the process be explained?

TIA
Ian
 
Upvote 0
Right I have a working formula that checks Cell AG3 and highlights my required cell, all I need to know now is how to apply this formula (conditional) to the range Z19:AU28?

=AND(LEFT(AG3,3)="319",IFERROR(VLOOKUP(AG3,A2:T89,20,0),0)<=-300)

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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