+ Reply to Thread
Results 1 to 6 of 6

Two formulas in one cell

  1. #1
    Registered User
    Join Date
    04-20-2009
    Location
    NY , USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Unhappy Two formulas in one cell

    I'm looking for a way to add an alert to the formula below if the resulting number is a negative number. Would that be two formulas in one cell? Is there anyway to do that?

    Thanks

    =IF('SD - Worksheet'!H26>1000,'SD - Worksheet'!O26,IF('SD - Worksheet'!O26>100,'SD - Worksheet'!O26,'SD - Worksheet'!K26))
    Last edited by bjwade62; 04-21-2009 at 11:44 AM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Two formulas in one cell

    Hi,

    Welcome to the forum, try this

    HTML Code: 
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Two formulas in one cell

    Hi,

    you could use conditional formatting to make the cell change dramatically when it contains a negative value (e.g. red background), or you could have an alert display in a neighbouring cell with a formula like

    =IF(A1<0,"Warning!","")

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Two formulas in one cell

    Try this:
    =IF('SD - Worksheet'!H26>1000,IF('SD - Worksheet'!O26>100,'SD - Worksheet'!O26,'SD - Worksheet'!K26),"No Value")
    Last edited by JBeaucaire; 04-20-2009 at 05:18 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    04-20-2009
    Location
    NY , USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Two formulas in one cell

    Thanks for all the replies. I used a combination of all of them.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Two formulas in one cell

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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