+ Reply to Thread
Results 1 to 11 of 11

if formula

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    if formula

    Hello

    I am struggling to complete a formula that returns the data in sheet1 a2 if 2 other references are correct . can anyone help with the end part please

    =IF(AND(SHEET2!C3<>SHEET1!A4,SHEET1!A7=TODAY),"I want the data in sheet1A2 returned here")

    Regards

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if formula

    =IF(AND(SHEET2!C3<>SHEET1!A4,SHEET1!A7=TODAY()),sheet1!A2,"")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    Re: if formula

    Hi Chemist

    tried that ...no errors in formula showing.... but nothing is returned ??

    Regards

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if formula

    Something is not matching up. Either upload an example sheet (Go Advanced>manage Attachments)
    or troubleshoot.
    Break it down
    If you put =SHEET2!C3<>SHEET1!A4 in a cell, is it true or false? If it's false (and you expect true), look for differences
    Same with SHEET1!A7=TODAY()

  5. #5
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    Re: if formula

    Hi Chemist

    all looks ok maybe Im doing it all wrong quite new to this see below for example worksheet

    Book1.xlsx

    Regards

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if formula

    Okay,
    Sheet2!C3<>Sheet1!A4 is FALSE which makes
    AND(SHEET2!C3<>SHEET1!A4,SHEET1!A7=TODAY()) FALSE
    which returns ""
    Did you want to say
    Sheet2!C3=Sheet1!A4?
    or
    OR(SHEET2!C3<>SHEET1!A4,SHEET1!A7=TODAY())...

    In words, what do you want to happen

  7. #7
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    Re: if formula

    sorry amended example

    Book2.xlsx

    Regards

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if formula

    Same issue. If C3 = zone4 for example, you will return Sheet1!A2

  9. #9
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    Re: if formula

    oh ok sorry ....... so I want sheet1A2 data returned in sheet2 C4, if sheet2 C3 is the same as sheet1 A4 and sheet1 A7 is todays date

    Thanks for your help its all a learning curve for me I thought <> meant "the same as or equal"

  10. #10
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: if formula

    shrubfact,

    <> is equivalent to "not equal to" - in your example, A4 in Sheet1 and C3 in Sheet2 are the same. Change one of them to zone2, and see what happens.



    Edit:I see you have that now - cool...
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  11. #11
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    Re: if formula

    ahh got it ...now its sorted many thanks to you both

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1