+ Reply to Thread
Results 1 to 4 of 4

IF formula

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    Denver, Co
    MS-Off Ver
    2010
    Posts
    2

    IF formula

    Sometimes, I figure Excel formulas out, and other times I am clueless. I have done this before with no problem, but today I can not get it.

    I need a formula that will reference a cell on Sheet 1 and provide a dollar amount on Sheet 2. I have tried several variations of the formula below:
    =IF('Sheet 1'!E52:F52="10","$1,433",IF('Sheet 1'!E52:F52="9","$1,299",IF('Sheet 1'!E52:F52="8","$1,155")))

    Any input is welcome and thank you in advance for your assistance.

    Shana

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: IF formula

    If E52:F52 are merged as one cell, you can just check against E52, rather than E52:F52. If you are checking against both, you will have to enter the formula as an array formula using ctrl+shift+enter. Be warned that this will only check against and return results based on column E. If you want to return results based on both values, the formula will need to be a bit more complex. You will likely want to remove the quotes around 10, 9 and 8, as the formula will just return FALSE if you're trying to compare numbers to text.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    Denver, Co
    MS-Off Ver
    2010
    Posts
    2

    Re: IF formula

    Brilliant Melvosh! Thank you so much. I had tried without the "" around the number, but it was the merge cell that messing things up. Removing the quotes and only referring to E52 did the trick.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: IF formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. 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