LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF stmnt with a nested AND statement - need help

Using Excel, I have 3 conditions, lets say a1 is apple, a2 is apple,
a3 is pear.

In C1 - I do a simple if...comparing if a1=a2, "match", else "error"

so then I go to D1 - and i want to focus on the error columns -
catching any instances where the record above may say match in column
C but also that the info in column a matches as well.

This is what i have come up with so far but I am getting a "this
formula has an error" message.
formula for column D ...
=if(d1="match", "match", If(D2="error" and D1="match" and a1=a2,
"match", "error")),

I am comparing cell above to cell below - if match say match.
Then I look at the cell below and if it already says match - leave
alone.... but if it says error - go look at the cell above to see if
the contents in top row top column match the second row top column- if
these match, then say match.... otherwise say error.

Unfortunately the person I am doing this for only has excel and not
access.

Anyone help out here?

 
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
Nested IF/OR/AND Statement Help Gayla Excel Worksheet Functions 3 June 22nd 07 04:27 AM
Nested IF/OR/AND statement Gayla Excel Discussion (Misc queries) 0 June 20th 07 07:46 PM
how to do a nested if statement Analyst Excel Discussion (Misc queries) 3 November 27th 06 11:22 PM
Help with a nested IF statement. BM Excel Discussion (Misc queries) 4 August 18th 06 04:36 AM
Nested IF statement jgannon Excel Discussion (Misc queries) 3 November 22nd 05 11:55 PM


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