+ Reply to Thread
Results 1 to 6 of 6

how to enter value in cell based on logic from other two cells?

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question how to enter value in cell based on logic from other two cells?

    I have 3 cells that need to work together. I want to enter the pay-rate(J2) for each person but I do not want to do it manually. I want to fill in J2 but off of logic using E2 and F2. For example, If E2 says "weekend" and F2 says "Day" then I want it to reference D2 from my other worksheet which is the value for weekday+Day = $10. So $10 would reflect back on my first sheet under pay-rate (J2).

    I am assuming may need to some multiple statement to achieve this, however functions are not my strong suite in excel. I would also think it would be a very large logic to input all 6 combinations.


    Here are all the payrate different combinations...


    Different pay rate combinations (pic below, these values live on a different sheet)
    Weekday Day $10
    Weekday Evening $20
    Weekday Night $25
    Weekend Day $20
    Weekend Evening $25
    Weekend Night $30



    1.PNG

    2.PNG

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: how to enter value in cell based on logic from other two cells?

    In J2 try...

    =IFERROR(INDEX(Sheet4!$D$2:$D$7,MATCH(E2&F2,Sheet4!$B$2:$B$7&Sheet4!$C$2:$C$7,0)),"")


    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually

    BTW: Next time you may want to post a workbook rather than a picture. Much easier to test plus no need to have to retype your data.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: how to enter value in cell based on logic from other two cells?

    wow, my head is spinning with that formula. Thank you for your post.. I have uploaded my workbook. Can you please enter it for me so i have a better understanding?

    thank you
    Attached Files Attached Files
    Last edited by jeffreybrown; 10-15-2016 at 09:42 PM. Reason: Can you limit quoting whole posts please!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: how to enter value in cell based on logic from other two cells?

    Sure, no problem. Give this a try...
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: how to enter value in cell based on logic from other two cells?

    Quote Originally Posted by jeffreybrown View Post
    Sure, no problem. Give this a try...
    Thank you man! I really appreciate it. Looks great, but just 1 tad issue lol. You placed in it the payout but should have been in $ rate . I think I can try to paste the code to the next column and make it work.

    Thank you again, I appreciate your help.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: how to enter value in cell based on logic from other two cells?

    You are most welcome and thanks for the rep. Happy to help.

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

+ 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. Enter data into cells based on single cell data
    By lawrence24 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-09-2014, 03:11 AM
  2. Replies: 1
    Last Post: 01-23-2014, 05:39 AM
  3. Replace cell value based on a logic statement
    By spujr in forum Excel General
    Replies: 5
    Last Post: 01-17-2014, 04:56 PM
  4. Enter value in cell based on value combination of two other cells
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2013, 10:40 AM
  5. Text in a single cell based on logic of multiple other cells
    By dtrimble in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 01:33 AM
  6. Replies: 1
    Last Post: 05-31-2010, 09:45 AM
  7. Automatically enter cell value based on the values of two other cells
    By vamedic11 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-09-2010, 11:21 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