+ Reply to Thread
Results 1 to 10 of 10

If formulae

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    Reading, England
    MS-Off Ver
    2010
    Posts
    3

    If formulae

    Hi,

    I would like to use an If formula to automatically enter the values "Z" or "S" depending upon the values in two cells.

    Now I have 7 columns which I need to think about. Working from left to right:

    Column F is where I would like to insert the "IF" formula to deduce whether the letter Z or S are used.
    Columns G and H are fixed values.
    Column I finds the difference between the adjacent cells in columns G and H.
    Columns J and K are fixed values.
    Column L finds the difference between the adjacenet cells in columns J and K.

    What I would like to do, is enter an "IF" formula (column F) that when the values in both Columns I and L are individually ≤ 1.2, column F displays the letter S, and if both columns I and L are individually >1.2 then column F displays the letter Z.

    Thanks for any help in advance.

    All the best,

    Andrew

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: If formulae

    Hi

    Try this
    =if(or(I1<=1.2,L1<=1.2),"S","Z")
    Punnam

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If formulae

    Try this (untested)

    F1=if(and(i1<="1.2",L1<="1.2"),"S","Z")
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    09-02-2014
    Location
    Reading, England
    MS-Off Ver
    2010
    Posts
    3

    Re: If formulae

    Hi All,

    Thanks for your help.

    Both formulae work for setting it to S.

    =if(or(I1<=1.2,L1<=1.2),"S","Z")
    =if(and(i1<="1.2",L1<="1.2"),"S","Z")

    But what I would like to do is perhaps something along the lines of this:

    =IF(((I1<="1.2",L1<="1.2"),"S")OR((I1>"1.2",L1>"1.2"),"Z"))

    Not sure if that would work...

    Thanks again
    Andrew

  5. #5
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: If formulae

    Hi, you didn't specify expected result if neither both values are <=1.2 nor >1.2?
    =IF(AND(I1<=1.2,L1<=1.2),"S",IF(AND(I1>1.2,L1>1.2),"Z"))

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: If formulae

    Try t
    this
    =IF(OR(AND(I2<=1.2,L2<=1.2),AND(I2>1.2,L2>1.2)),"S","Z")

    Punnam

  7. #7
    Registered User
    Join Date
    09-02-2014
    Location
    Reading, England
    MS-Off Ver
    2010
    Posts
    3

    Re: If formulae

    Thanks Estige,

    =IF(AND(I1<=1.2,L1<=1.2),"S",IF(AND(I1>1.2,L1>1.2),"Z"))

    So that formula works if like you say both cells are the same value, i.e <-1.2 or >1.2.

    But as you mentioned what if they are both neither <=1.2 nor >1.2? So if cell I1 is 1.4 and cell L1 is 1.1, then I would like it to say S. Likewise if cell I1 reads 1.1 and cell L1 reads 1.4 then I would like it to say S also.

    Thanks again.

    Andrew

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If formulae

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  9. #9
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: If formulae

    So Z if both >1.2, else S? Then a small adjustment to Oeldere's formula:
    =if(and(i1>1.2,L1>1.2),"Z","S")

  10. #10
    Registered User
    Join Date
    09-02-2014
    Location
    Reading, England
    MS-Off Ver
    2010
    Posts
    3

    Re: If formulae

    Thanks Estige thanks works.

  11. #11
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: If formulae

    @ PBA-Andrew Collin

    Have u checked post 6

    Punnam

+ 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. Searching TEXT in formulae, rather than results of formulae
    By Niek Otten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  2. Searching TEXT in formulae, rather than results of formulae
    By AndyE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  3. [SOLVED] Searching TEXT in formulae, rather than results of formulae
    By AndyE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. Searching TEXT in formulae, rather than results of formulae
    By AndyE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. Searching TEXT in formulae, rather than results of formulae
    By AndyE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Tags for this Thread

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