+ Reply to Thread
Results 1 to 8 of 8

Show result depending on two cells

Hybrid View

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Show result depending on two cells

    I am having one particular issue and can't find correct formula.

    I am coordinating local election results for a website, I have created a spreadsheet but want column 3 to show the following;HOLD/GAIN/RESULT PENDING depending on the result

    Therefore if

    If Party A retains seat it shows as "HOLD"
    If another party wins it shows "GAIN"
    If result is yet to be declared it shows "Result Pending"


    Col B Col C Col D Col E
    WARD CURRENT 2014 Formula here


    I am using Excel 2007 I have tried =IF(C8=D8,"HOLD",IF(C8<D8,"GAIN")) but result showing false as answer, which I think is due to alphabetical issue as some work some don't eg

    LIB DEM Labour shows False

    I'd appreciate any help

    Thank you

    Dave
    Last edited by zbor; 05-13-2014 at 06:54 AM. Reason: Moderator Request to rename

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: What would be the best formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: Show result depending on two cells

    Try

    Formula: copy to clipboard
    =IF(C8=D8,"HOLD",IF(C8<D8,"GAIN", "RESULT PENDING"))

  4. #4
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Show result depending on two cells

    Hi Zbor

    Thanks for trying to help, Now just showing "Result Pending"

    Ive added by spreadsheet to see if that helps

    Dave
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Show result depending on two cells

    My fault had a typo

    However, when LIB DEM to CON it doesn't recognize it as C is after L in the alphabet ... very frustrating, should I use a OR somewhere within the formula ?

    Dave

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: Show result depending on two cells

    Something like this?

    You must have same names in table as in the list (see, I need to change LIB DEMS into LIB DEM).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Show result depending on two cells

    That's Fab !!!

    Just need a couple of tweeks but now can play round

    Thanks for your help today, much appreciated

    Dave

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Show result depending on two cells

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. 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