Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cheryl B.
 
Posts: n/a
Default Help with IF Statement

I think I'm close but am off on the structure and/or syntax. I have three
different conditions for which I need three different results. It may be a
no-brainer for some but it's about to drive me crazy. Can anybody help?

Condition Result
Tag 1 = Tag 2 No Change Required
Tag 1 < Tag 2 and Year equal to 2005 Update FA
Tag 1 < Tag 2 and Year not equal to 2005 Internal Mapping

Cell D2 = Tag 1
Cell Z2 = Tag 2
Cell Y2 = Year

Substituting elements with cells, it looks like this:

D2 = Z2 No Change Required
D2 < Z2 and Y2 = 2005 Update FA
D2 < Z2 and Y2 < 2005 Map Internally

But I don't seem to be able to get all in one string for one cell ...

Thanks!
  #2   Report Post  
Chris Lavender
 
Posts: n/a
Default Help with IF Statement

=IF(D2=Z2,"No change required",IF(Y2=2005,"Update FA","Internal mapping"))

Best rgds
Chris Lav

"Cheryl B." wrote in message
...
I think I'm close but am off on the structure and/or syntax. I have three
different conditions for which I need three different results. It may be

a
no-brainer for some but it's about to drive me crazy. Can anybody help?

Condition Result
Tag 1 = Tag 2 No Change

Required
Tag 1 < Tag 2 and Year equal to 2005 Update FA
Tag 1 < Tag 2 and Year not equal to 2005 Internal Mapping

Cell D2 = Tag 1
Cell Z2 = Tag 2
Cell Y2 = Year

Substituting elements with cells, it looks like this:

D2 = Z2 No Change Required
D2 < Z2 and Y2 = 2005 Update FA
D2 < Z2 and Y2 < 2005 Map Internally

But I don't seem to be able to get all in one string for one cell ...

Thanks!



  #3   Report Post  
bj
 
Posts: n/a
Default Help with IF Statement

if I am reading your post correctly
try
=if(d2=z2,"No Change Required",if(y2=2005,"Update FA","Internal Mapping"))
or if y2 is in a date format
=if(d2=z2,"No Change Required",if(year(y2)=2005,"Update FA","Internal
Mapping"))

"Cheryl B." wrote:

I think I'm close but am off on the structure and/or syntax. I have three
different conditions for which I need three different results. It may be a
no-brainer for some but it's about to drive me crazy. Can anybody help?

Condition Result
Tag 1 = Tag 2 No Change Required
Tag 1 < Tag 2 and Year equal to 2005 Update FA
Tag 1 < Tag 2 and Year not equal to 2005 Internal Mapping

Cell D2 = Tag 1
Cell Z2 = Tag 2
Cell Y2 = Year

Substituting elements with cells, it looks like this:

D2 = Z2 No Change Required
D2 < Z2 and Y2 = 2005 Update FA
D2 < Z2 and Y2 < 2005 Map Internally

But I don't seem to be able to get all in one string for one cell ...

Thanks!

  #4   Report Post  
Cheryl B.
 
Posts: n/a
Default Help with IF Statement

That's IT, B.J. - thanks sooooo much!

"bj" wrote:

if I am reading your post correctly
try
=if(d2=z2,"No Change Required",if(y2=2005,"Update FA","Internal Mapping"))
or if y2 is in a date format
=if(d2=z2,"No Change Required",if(year(y2)=2005,"Update FA","Internal
Mapping"))

"Cheryl B." wrote:

I think I'm close but am off on the structure and/or syntax. I have three
different conditions for which I need three different results. It may be a
no-brainer for some but it's about to drive me crazy. Can anybody help?

Condition Result
Tag 1 = Tag 2 No Change Required
Tag 1 < Tag 2 and Year equal to 2005 Update FA
Tag 1 < Tag 2 and Year not equal to 2005 Internal Mapping

Cell D2 = Tag 1
Cell Z2 = Tag 2
Cell Y2 = Year

Substituting elements with cells, it looks like this:

D2 = Z2 No Change Required
D2 < Z2 and Y2 = 2005 Update FA
D2 < Z2 and Y2 < 2005 Map Internally

But I don't seem to be able to get all in one string for one cell ...

Thanks!

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
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM


All times are GMT +1. The time now is 09:25 AM.

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"