+ Reply to Thread
Results 1 to 17 of 17

If/then question

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    If/then question

    I currently have this formula in my cell:
    =IF(F9+B10-C10-D10-E10>1260, "1260") That works great...except when the sum comes out to less than 1260, I want it to just keep the sum there and not make it 1260.

    In other words, if F9+B10-C10-D10-E10 = greater than or equal to 1260 it would always enter 1260...YES!
    If F9+B10-C10-D10-E10 = less than 1260 it would just use that calculated amount.


    Please help.
    Thanks!!!

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: If/then question

    =if(f9+b10-c10-d10-e10>1260;1260;f9+b10-c10-d10-e10)
    When I say semicolon, u say comma!

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    Try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: If/then question

    That didn't work...

    (Sorry, this was directed to L-Drr's post, not Dorie's)
    Last edited by cryssy29; 08-02-2013 at 12:51 PM.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: If/then question

    Hi,

    "That didn't work..."

    Norie's answer looks perfectly good to me. Perhaps you could expand on your comment a little and explain why it didn't work? What result did it give? What result were you expecting?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: If/then question

    Norie,
    That's "almost" there...but in occurances where it's less than 1260, it's still entering 1260 and not the lesser amount...which messes up the following

    1260 - OK
    1259 - OK
    1260 - NO...This should be taking the 1259+B10-C10-D10-E10. For my calculations it should be: 1259+10.5-0-0-0 = 1269.5. Since that's over 1260, I want it to keep the 1259 and only use 1259 for the remainder of the calculations down the column...and so on.

    Does that make sense?

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    Sorry that doesn't add up.

    1269.5 is more than 1260 so, according to your request, should return 1260.

    If you wanted to return 1259, the value in F9, then that kind of changes things quite a bit (completely?).
    Last edited by Norie; 08-02-2013 at 12:50 PM.

  8. #8
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: If/then question

    Sorry, when I put the formula in the formula bar I receive the "Your formula contains an error" message. For additional detail see my response to Norie below.

    (Again, I'm referring to L-Drr's and XOR LX's followup), not Dorie.
    Last edited by cryssy29; 08-02-2013 at 12:55 PM.

  9. #9
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: If/then question

    Norie, I guess I'm not explaining this correctly...

    If the value is 1260 or over I want it to show 1260 in F10.
    If the value is under 1260 I want it to show that lesser amount in F10 so that calculations following (F11, F12, F13, etc.) will use the lesser amount.

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    That's what the formula does.

  11. #11
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: If/then question

    Earlier I posted this

    Quote Originally Posted by L-Drr View Post
    =if(f9+b10-c10-d10-e10>1260;1260;f9+b10-c10-d10-e10)
    Doesn't that work either?

    Edit: saw your edit, but I'm really surprised that it doesn't work... maybe it's different excel 2011 semantics/syntax?
    Last edited by L-Drr; 08-02-2013 at 12:58 PM.

  12. #12
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: If/then question

    Ahhh now I see! You want to keep F9, not the whole sum!

    Try this: =if(f9+b10-c10-d10-e10>1260;1260;f9)

  13. #13
    Registered User
    Join Date
    08-02-2013
    Location
    NYS
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: If/then question

    never mind...got it.
    Attached Images Attached Images
    Last edited by cryssy29; 08-02-2013 at 01:10 PM.

  14. #14
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    L-Drr

    If the OP wants to keep the F9 that kind of contradicts the original post that said to keep the result of the calculation if the result is under 1260.

  15. #15
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    cryssy29

    Attach a workbook rather than an image.

  16. #16
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: If/then question

    Yup true, but in post #6 the question seems to have changed (as I see now you already noticed in post #7)

  17. #17
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If/then question

    Actually, I think I know what the problem is - F9 needs to be absolute not relative as it was in the original formula you posted.

    Is that correct?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  2. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  3. Chart Question and table question
    By nmss18 in forum Excel General
    Replies: 5
    Last Post: 03-17-2009, 08:52 AM
  4. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM
  5. Replies: 3
    Last Post: 05-05-2006, 12:55 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