+ Reply to Thread
Results 1 to 15 of 15

If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

  1. #1
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Hi folks,

    I'm trying to create a spread sheet to compare company codes with pay groups and if they match. It would look like this

    Company....Pay group....Company - Pay Group Correspondence
    6343..........Monthly.......Y
    4534..........Daily...........Y
    4453..........Monthly.......Y
    9942..........Daily...........N

    What I'm trying to do is to create relations between two values (6343=Monthly) and if they don't match in the thrid column shoud be shown "N", if they match "Y". And as a extra I would like if the Company and the Pay group are shown with a yellow background if they do not match. I tried everything but I'm not able to create this formula. I have to say that my Excel knowledge is very very basic.

    Can somebody please help me?? Thank you so much.

    Greetings,
    Alex

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX & Windows
    Posts
    6,746

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    can you post a sample spreadsheet
    Wayne

    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,468

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Hi,

    Please clarify why the first three apparently 'match' i.e. you want a Y, but the last one doesn't.

    The number 6343 and the text "monthly" only appear on the first line. Why isn't that the only one that matches?
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Hi,

    Thanks for the replys. Unfortunately I can't post a spread sheet as I don't have excel on my private computer. The first three match because the pay groups are correct. I mean I would need to enter them all manually into the formula. The last one dose not because I would have entered in the formula for this company a monthly pay. The subject line is only an example, I would need to enter the formula for all companies. Late when I track data from the master system to this spread sheet it should work like a "4 eyes check". Did I explain myself?? Thank you very much

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    8,048

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Company....Pay group....Company - Pay Group Correspondence
    6343..........Monthly.......Y
    4534..........Daily...........Y
    4453..........Monthly.......Y
    9942..........Daily...........N

    I wonder you had to apply condition manually for 1st line and make comparison like this:
    =IF(EXACT(A1&B1,"6343Monthly"),"Y","N")==>Y
    ...
    and 4th line:
    =IF(EXACT(A1&B1,"9942Monthly"),"Y","N")==>N

    Is it true?

    If yes, it is a real pain. I believe there is a better solution by making a lookup table to assign Pay group to Company

  6. #6
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Hi,

    Thanks for the post. The formula gives me an invalid message I wonder what I'm doing wrong. I select all fields with C3 as action field and enter the formula?? Thank you. I'm really bad with Excel

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    8,048

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Nop. In this case, type in C3:
    =IF(EXACT(A1&B1,"6343Monthly"),"Y","N")
    ...
    C4:
    =IF(EXACT(A1&B1,"9942Monthly"),"Y","N")

    Anyway, it's not the proper way Bill Gates do. It's better to store Company-Pay Group somewhere then LOOKUP it,

  8. #8
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Ok, It's only a temporary solution until I'm able to configure the master system properly. Can I also type all formulas into one cell and then make them applicable for all selected fields? sorry for my stupid questions :/

  9. #9
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    The formula still gives me invalid :/

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    8,048

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    How many pair of "Company-Pay Group"s do you have?

  11. #11
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    about 20, but it is not only about them. I would need the formula also for other fields to match values

  12. #12
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    If I enter the formula under ctrl A it shows invalid, if I enter it directly in the field it doesn't do anything, it just shows the formula

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    8,048

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Being a helper here, I've never thought of nesting 20 conditions into 1 formula
    Now try to upload a small worksheet with all conditions we will help you to finalise.

  14. #14
    Registered User
    Join Date
    04-05-2014
    Location
    Granada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    :D You are the best

  15. #15
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,468

    Re: If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3

    Quote Originally Posted by laaxy View Post
    Hi,

    Thanks for the replys. Unfortunately I can't post a spread sheet as I don't have excel on my private computer. The first three match because the pay groups are correct. I mean I would need to enter them all manually into the formula. The last one dose not because I would have entered in the formula for this company a monthly pay. The subject line is only an example, I would need to enter the formula for all companies. Late when I track data from the master system to this spread sheet it should work like a "4 eyes check". Did I explain myself?? Thank you very much
    What do you mean by 'the first three paygroups are correct'?

    You need to clearly explain what thought process has cause you to calculate the results you have. Pretend you are talking to a stupid child and spell this out At the moment I have no idea why the first three are Y but not the 4th one. We need to understand your rules.

+ 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-02-2014, 02:15 PM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM

Tags for this Thread

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