Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Compare formula result with text

How do I compare the results of a formula with the text in another field?
Example: I have a formula that is calculating a date (mm/dd/yyyy) in cell A1.
I want to compare that to the Month (text) in cell A4 and in cell A5 return
"Goal Setting" if the result is TRUE and "Monthly Feedback" if the result is
FALSE
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Compare formula result with text

If A1 is actually formatted as a date and not text, then this should work for
you:

=IF(ISNA(MATCH(A4,{"January","February","March","A pril","May","June","July","August","September","Oc tober","November","December"},0)),"MonthlyFeedback ",IF(MONTH(A1)=MATCH(A4,{"January","February","Mar ch","April","May","June","July","August","Septembe r","October","November","December"},0),"Goal
Setting","MonthlyFeedback"))

Change the list of months to "Jan","Feb", etc. if you're using abbreviations
in A4.

The IF(ISNA()) portion of the formula will cause a "Monthly Feedback" entry
to appear if one of the month list entries is not in A4 (as blank, or
misspelled).


"KimW" wrote:

How do I compare the results of a formula with the text in another field?
Example: I have a formula that is calculating a date (mm/dd/yyyy) in cell A1.
I want to compare that to the Month (text) in cell A4 and in cell A5 return
"Goal Setting" if the result is TRUE and "Monthly Feedback" if the result is
FALSE

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default Compare formula result with text

If the month in A4 is text as in October and the result in A1 is for
instance 10/28/2009 than you can use

=IF(TEXT(A1,"mmmm")=A4,"Goal Setting","Monthly Feedback")

--


Regards,


Peo Sjoblom


"KimW" wrote in message
...
How do I compare the results of a formula with the text in another field?
Example: I have a formula that is calculating a date (mm/dd/yyyy) in cell
A1.
I want to compare that to the Month (text) in cell A4 and in cell A5
return
"Goal Setting" if the result is TRUE and "Monthly Feedback" if the result
is
FALSE



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need result of formula to compare itself to another number andincrease if needed. rudyeb Excel Discussion (Misc queries) 1 October 17th 08 08:59 PM
copy formula result (text) only - without copying formula Mulberry Excel Discussion (Misc queries) 2 October 2nd 08 09:51 AM
Text Result Formula Creolekitten via OfficeKB.com Excel Discussion (Misc queries) 5 July 24th 06 09:32 PM
what if the result of a formula is text HB Excel Worksheet Functions 1 February 22nd 06 11:12 AM
formula is displayed as literal text instead of formula result carlossaltz Excel Discussion (Misc queries) 2 July 1st 05 09:26 PM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"