Home

if then formula help

%3CLINGO-SUB%20id%3D%22lingo-sub-772487%22%20slang%3D%22en-US%22%3Eif%20then%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772487%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20use%20the%20If-Then%20capability%20to%20compare%20the%20first%20cell%20with%20one%20specific%20value%20to%20a%20second%26nbsp%3Bcell%20that%20is%20already%20a%20formula%20using%20dates.%26nbsp%3B%20The%20second%20cell%20looks%20at%20two%20different%20dates%20and%20calculates%20the%20number%20of%20days%20between%20them.%26nbsp%3B%20Then%2C%20if%20the%20first%20cell%20has%20a%20specific%20word%20in%20it%20(from%20a%20pull%20down%20set%20of%20choices)%20i%20want%20the%20second%20cell%20to%20show%20that%20number%20of%20days%20that%20were%20calculated%20and%20if%20the%20first%20cell%20is%20any%20other%20word%20then%20to%20show%200%20(zero)%26nbsp%3Bin%20the%20second%20cell.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-772487%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Evalue%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772490%22%20slang%3D%22en-US%22%3ERe%3A%20if%20then%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772490%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3DIF(FirstCell%3D%22MagicWord%22%2CFormulaToCalculateNumberOfDates%2C0)%3C%2FPRE%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F381719%22%20target%3D%22_blank%22%3E%40BMARSH99%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
BMARSH99
Occasional Visitor

I am trying to use the If-Then capability to compare the first cell with one specific value to a second cell that is already a formula using dates.  The second cell looks at two different dates and calculates the number of days between them.  Then, if the first cell has a specific word in it (from a pull down set of choices) i want the second cell to show that number of days that were calculated and if the first cell is any other word then to show 0 (zero) in the second cell. 

1 Reply

 

=IF(FirstCell="MagicWord",FormulaToCalculateNumberOfDates,0)

@BMARSH99

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
21 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies