+ Reply to Thread
Results 1 to 6 of 6

Change text of cell based on two other cells with equal values

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    NM
    MS-Off Ver
    Excel 2007
    Posts
    15

    Change text of cell based on two other cells with equal values

    'Sup!


    I need to be able to have cell A1 display the text "Hourly" if cells B2 and C2 have equal numbers in it, regardless of what those numbers are.

    Ex: If cells B2 and C2 both have the number 10 in them, then A1 displays "hourly".

    If they aren't equal then nothing happens.

    Oh, and i forgot to mention that there is already a formula in A1. It's =ABS(B2-C2)

    I guess i'll need to modify the existing formula.
    Last edited by spookymyo; 01-18-2013 at 04:17 PM.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Change text of cell based on two other cells with equal values

    Try this formula in cell A1:
    Please Login or Register  to view this content.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    NM
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Change text of cell based on two other cells with equal values

    Awesome!

    Worked perfectly! Love this site!

    Thanks so much!

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Change text of cell based on two other cells with equal values

    If this solved your problem, pls mark the thread as solved (see thread tools).

  5. #5
    Registered User
    Join Date
    01-18-2013
    Location
    NM
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Change text of cell based on two other cells with equal values

    Well, I guess I spoke too soon.

    I almost works perfectly.

    Cells B2 and C2 are populated by a formula. What's happening is that when there is no result (blank cell) in B2 or C2, A1 still shows "hourly".

    Can we fix this?


    Thanks!

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Change text of cell based on two other cells with equal values

    Then it would be something like this.
    Please Login or Register  to view this content.
    First checks if b2 and c2 contain a number before evaluating b2 and c2.

+ 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