+ Reply to Thread
Results 1 to 13 of 13

Mark a value in a cell IF a value in another is x...

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Mark a value in a cell IF a value in another is x...

    HI,
    i need some help with a (probably) easy task for you guys.. i'm very poor at Excel to be honest.

    What i need to set is a value in a specific cell that depends on the value marked in another cell.

    Example: football match result:

    Team A VS Team B: 3-1. Team A wins so the result is: 1 (could be either X for a draw or 2 in case of an away win), so depending IF the value in the cell is 1, X or 2 i need to "translate" this into a numeric value in another cell and build up a dynamic classification.

    so excel should read the value in the first cell (IF 1, X or 2) and associate a numeric value to it, such as 0, 1 or 3 (points) in a DIFFERENT cell.

    Not sure i made myself clear.. any idea?

  2. #2
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Mark a value in a cell IF a value in another is x...

    Do You mean:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ?
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Re: Mark a value in a cell IF a value in another is x...

    mhhh.. might work.. now i just probably need to add the option IF A3=B3;1 in case of a draw. I'll try it.
    Thanks

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Mark a value in a cell IF a value in another is x...

    HI ,

    Provide a sample work book
    Punnam

  5. #5
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Mark a value in a cell IF a value in another is x...

    Quote Originally Posted by Miroslav R. View Post
    Do You mean:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ?
    If A3>B3 then result is 3
    If A3<B3 then result is 0
    Else result is 1

  6. #6
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Re: Mark a value in a cell IF a value in another is x...

    ok.. it's not working but please have a look into what i want to achieve :-S

    Excel prob.png

    i think i can see 2 ways of doing this:

    1) to compare the 2 cells with the actual goals value and give instruction to mark a number in the Match 1 cell

    2) to READ the value 1,X or 2 and Translate it into a numeric value in the Match 1 cell

    :-S
    Attached Images Attached Images

  7. #7
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Mark a value in a cell IF a value in another is x...

    Quote Originally Posted by Punnam View Post
    HI ,

    Provide a sample work book
    Punnam

    Punnam was right...

    Upload excel file...

  8. #8
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Re: Mark a value in a cell IF a value in another is x...


  9. #9
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Re: Mark a value in a cell IF a value in another is x...

    I managed to have Excel accepting this formula, but the result is: #NAME?

    Basically i have to mark a different value (3,1 or 0) in my target cell depending on the values (1,x or 2) of the my source cell, but it doesn't work.
    The forlmula is:
    =IF(A=1,3)*OR,IF(A=x,1)*OR,IF(A=2,3)

    Any ideas?

  10. #10
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Mark a value in a cell IF a value in another is x...

    Hi Nabarez ,


    Provide a sample work book stating your requirement as before and after sheet for better understanding & fast response.

    Punnam

  11. #11
    Registered User
    Join Date
    05-21-2014
    Posts
    6

    Re: Mark a value in a cell IF a value in another is x...


  12. #12
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Mark a value in a cell IF a value in another is x...

    hi Nabarez,

    It is showing a connecting error .

    Punnam

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,775

    Re: Mark a value in a cell IF a value in another is x...

    Use Go Advanced when you respond and find the paper clip icon - upload the workbook here instead of supplying an external link.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    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: 2
    Last Post: 10-28-2013, 03:52 PM
  2. Replies: 3
    Last Post: 10-16-2013, 03:56 AM
  3. Replies: 1
    Last Post: 06-02-2013, 04:00 PM
  4. Mark data from one sheet to another,and then mark dublicate
    By minotauro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2012, 07:58 AM
  5. Quatation mark or single mark in sql query
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2010, 06:03 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