SOLVED

formula and formatting help

%3CLINGO-SUB%20id%3D%22lingo-sub-2417212%22%20slang%3D%22en-US%22%3Eformula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417212%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20everyone%2C%20so%20I%20need%20help%20with%20a%20formula.%26nbsp%3B%20In%20the%20sheet%20attached%20I%20have%20%22INSTR%20QUAL%20STATUS%22%20cell%20(F15)%20and%20I%20tried%20using%20a%20IF%20AND%20Function%20but%20couldn't%20get%20it%20to%20work%20for%20me.%26nbsp%3B%20what%20I'm%20trying%20to%20do%20is%20have%20it%20say%20Active%20or%20Expired%20but%20only%20if%20there%20is%20data%20entered%20in%20either%20B16-E16%20cell.%26nbsp%3B%20if%20there%20is%20no%20data%20entered%20in%20any%20of%20those%20cells%20I%20want%20F16%20to%20be%20blank.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20you%20will%20see%20some%20conditional%20formatting%20in%20cell%20E16.%26nbsp%3B%20I%20want%20the%20conditional%20formatting%20to%20work%20only%20if%20there%20is%20data%20entered%20in%20it.%26nbsp%3B%20if%20its%20blank%20I%20want%20it%20to%20remain%20white.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20for%20any%20and%20all%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2417212%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417385%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417385%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289214%22%20target%3D%22_blank%22%3E%40spalmer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChange%20the%20formula%20to%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIF(COUNTBLANK(Table1%5B%40%5BINSTR.%20QUAL.%20TYPE%20%2F%20LEVEL%3A%5D%3A%5BINSTR.%20QUAL.%20EXP.%20DATE%3A%5D%5D)%2C%22%22%2CIF(%5B%40%5BINSTR.%20QUAL.%20EXP.%20DATE%3A%5D%5D%3CTODAY%3E%3C%2FTODAY%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417699%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417699%22%20slang%3D%22en-US%22%3EThank%20you%20Hans!%20would%20you%20happen%20to%20know%20how%20to%20fix%20that%20conditional%20formatting%20issue%20im%20having%20as%20well%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417761%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417761%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289214%22%20target%3D%22_blank%22%3E%40spalmer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelect%20the%20cell.%3C%2FP%3E%0A%3CP%3EOn%20the%20Home%20tab%20of%20the%20ribbon%2C%20click%20Conditional%20Formatting%20%26gt%3B%20Manage%20Rules...%3C%2FP%3E%0A%3CP%3EClick%20Edit%20Rule...%3C%2FP%3E%0A%3CP%3ESelect%20'Use%20a%20formula%20to%20determine%20which%20cells%20to%20format'.%3C%2FP%3E%0A%3CP%3EEnter%20the%20formula%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DAND(E16%26lt%3B%26gt%3B%22%22%2CE16%3CTODAY%3E%0A%3C%2FTODAY%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20OK%2C%20then%20click%20OK%20again.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417875%22%20slang%3D%22ja-JP%22%3ERE%3A%20formula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417875%22%20slang%3D%22ja-JP%22%3Efe%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2418148%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20and%20formatting%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418148%22%20slang%3D%22en-US%22%3Eyou%20are%20awesome%20Hans!%20thank%20you%20so%20much%20really%20appreciate%20your%20help%20and%20time%3C%2FLINGO-BODY%3E
Contributor

Hey everyone, so I need help with a formula.  In the sheet attached I have "INSTR QUAL STATUS" cell (F15) and I tried using a IF AND Function but couldn't get it to work for me.  what I'm trying to do is have it say Active or Expired but only if there is data entered in either B16-E16 cell.  if there is no data entered in any of those cells I want F16 to be blank.

 

Also you will see some conditional formatting in cell E16.  I want the conditional formatting to work only if there is data entered in it.  if its blank I want it to remain white.

 

thank you for any and all help.

12 Replies
best response confirmed by spalmer (Contributor)
Solution

@spalmer 

Change the formula to

 

=IF(COUNTBLANK(Table1[@[INSTR. QUAL. TYPE / LEVEL:]:[INSTR. QUAL. EXP. DATE:]]),"",IF([@[INSTR. QUAL. EXP. DATE:]]<TODAY(),"Expired","Active"))

Thank you Hans! would you happen to know how to fix that conditional formatting issue im having as well?

@spalmer 

Select the cell.

On the Home tab of the ribbon, click Conditional Formatting > Manage Rules...

Click Edit Rule...

Select 'Use a formula to determine which cells to format'.

Enter the formula

 

=AND(E16<>"",E16<TODAY())

 

Click OK, then click OK again.

 

fe
you are awesome Hans! thank you so much really appreciate your help and time

Alright Hans, so i have another issue that doesnt seem to be working with the conditional formatting. your formula you gave me did work and i also needed another one that showed in yellow when the exp date was coming up in 140 days. i tried that formula you gave me but didnt work and i tried the current formula thats in there now and even when i delete the data it still shows up yellow. would you be able to help me out with this? i attached a new book

@spalmer 

It's probably a matter of placing the rules in the correct order.

ya I have tried flipping the order but still didn't work.

@spalmer 

Did you look at the version that I attached?

 

Could you attach a workbook with the non-working rules? The one you attached to your previous reply was the same as the first one...

i apologize here it is

@spalmer 

You used OR instead of IF in the formula for yellow. If you change OR to AND, it'll work as intended:

 

S0491.png

 

See the attached version.

I thought I tried it that way but I probably didn't. thank you Hans. Again I really appreciate it