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

How do I compare the formula result in one cell with the text in another
cell? I have a formula calculating a date in cell A1 and want to compare that
to the Month (text) typed in cell A4 and then in Cell A5 return "Goal
Setting" if the comparison is true and "Monthly Feedback" if false.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default comparing formula results with a cell

Hi,

Comparing a taext month like Lanuary to a properly formatted date can be
done but is not the place to start from and if it's not too late to change
this text date to a proper date then I would do that. However, this will work

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

Note this compare the full text month January ur February for example. If
you using Jan & Feb change the formula to

=IF(TEXT(A1,"mmm")=A4,"Goal Setting","Monthly feedback")

Mike

"KimW" wrote:

How do I compare the formula result in one cell with the text in another
cell? I have a formula calculating a date in cell A1 and want to compare that
to the Month (text) typed in cell A4 and then in Cell A5 return "Goal
Setting" if the comparison is true and "Monthly Feedback" if false.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default comparing formula results with a cell

So, you have a formula that returns date as a number, and want to compare the
month of that date to a text date, correct?

You can create a table with the month and month number like so:

A B
January 1
February 2
etc.

on Sheet2

Then, do =IF(MONTH(A1)=VLOOKUP(A4,Sheet2!A:B,2),"Goal Setting","Monthly
Feedback")

"KimW" wrote:

How do I compare the formula result in one cell with the text in another
cell? I have a formula calculating a date in cell A1 and want to compare that
to the Month (text) typed in cell A4 and then in Cell A5 return "Goal
Setting" if the comparison is true and "Monthly Feedback" if false.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default comparing formula results with a cell

And with my response in your other posting of pretty much the same question,
you have at least 3 ways to get the job done :).


"KimW" wrote:

How do I compare the formula result in one cell with the text in another
cell? I have a formula calculating a date in cell A1 and want to compare that
to the Month (text) typed in cell A4 and then in Cell A5 return "Goal
Setting" if the comparison is true and "Monthly Feedback" if 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
Comparing two columns , and giving comparison results in a third. Colin Hayes Excel Worksheet Functions 6 January 3rd 09 12:43 AM
comparing 2 cells where 1 is a cell with a formula colmkav Excel Discussion (Misc queries) 2 July 26th 07 03:37 PM
answer to odd results when comparing hyperlink addresses Patricia Shannon Links and Linking in Excel 0 March 9th 06 07:28 PM
no formula results in cell schuldies21 Excel Worksheet Functions 3 September 7th 05 08:20 AM
Comparing contents of two spreadsheets and outputting results to a brx Excel Worksheet Functions 5 March 17th 05 01:44 AM


All times are GMT +1. The time now is 10:51 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"