+ Reply to Thread
Results 1 to 16 of 16

if 2 cells match then enter 3rd cell

  1. #1
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Question if 2 cells match then enter 3rd cell

    I have a summary of my rent roll and it has many columns and rows. I would like to make a chart that shows something like this - If column a =1, and column b = 3 then +Column K(cell number on row to match the true statement for column A & B. Does that make sense? If row 5 has column a = 1 and column b = 3 then I want K5 in that cell.

    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: if 2 cells match then enter 3rd cell

    PPatrick, Good evening.

    Try to use:

    C1 --> formula -->
    Please Login or Register  to view this content.
    Is that what you want?

    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    I think it is close, I want the value that is in K. The data is on a different tab but if I can get it to work on the original page, I can move it to another correct? I need to search the full column
    Last edited by PPatrick; 03-23-2018 at 05:24 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: if 2 cells match then enter 3rd cell

    PPatrick, Good evening.

    "... I want the value that is in K. The data is on a different tab ..."
    To do this simply add the name of the tab in the formula:
    Please Login or Register  to view this content.
    Was that what you wanted?
    I hope I've helped.

  5. #5
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    =IF(AND(office!A:A=2,office!B:B=1),INDIRECT(OFFICE!"K" & ROW())),"")

    This is what I have and I get an error highlighting the "K"

  6. #6
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    =IF(AND(office!$A:$A=6,office!$B:$B=1),INDIRECT("OFFICE!*K" & ROW()),"0")

    It doesn't work with the * sign either.

  7. #7
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    table2.JPG This is what I want to accomplish
    table 1.JPG This is my data table.

  8. #8
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    As you can see I can pull some of the data correctly but not all of it. The formula that works sometimes is: =IF(AND(office!A:A = 6, office!B:B = 1),office!K:K,0) but it doesn't work all the time. (of course I change what A and B equal to match what I need)

  9. #9
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: if 2 cells match then enter 3rd cell

    PPatrick,

    This is getting too confusing to understand what you really need.

    This suggested formula can not have A:A or B:B intervals within an IF function.

    The suggested formula is to be placed on each line where the values in column A and B must be analyzed, leaving the formula in column C (for example) following exactly its explanation of the first message.

    Maybe you'd better save your spreadsheet on some free website, www.sendspace.com or another and put the link here for download.

    Remember to show what data you have and give an example of what the expected response would be.

    This way we can help with more speed and accuracy.

  10. #10
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    My data is the table in blue - I want to search column A for a number, and column B for a number if both are true I want to put the corresponding value that is in column K on my data sheet, the yellow table. For example if in the same row, column A (flr) = 6 and Column B (tier) = 1 then I want the value for K ($/sf) in that row to be put on the yellow spread sheet; for this example both floor 6 and tier 1 are true and the value in K for that row is 25.02.

  11. #11
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    Description: Floor and Tier rentroll

    You can use the following link to retrieve your file:

    https://www.sendspace.com/file/i7mna0

    Here is the file. thank you.

  12. #12
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: if 2 cells match then enter 3rd cell

    PPatrick, Good evening.

    Try to use:

    TAB $psf chart

    C3 --> formula -->
    Please Login or Register  to view this content.
    Copy this through the table.

    https://www.sendspace.com/file/k7u441

    Is that what you want?

    I hope it helps.

  13. #13
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    Yes, thank you, it worked! I appreciate your help.

  14. #14
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: if 2 cells match then enter 3rd cell

    PPatrick, Good afternoon.

    Glad to have helped you.

    Thanks for the feedback.

  15. #15
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Question Re: if 2 cells match then enter 3rd cell

    I have been using your formula and it seemed to be working but it really wasn't - it was working because there was only 1 suite on each floor that had a specific tier. If there are 2 suits on the floor with the same tier suite it simply gives me the product of the two suites, but I need the average of the suites on each floor.

    For example on 1 floor there may be 5 suites and there may be 5 different tiers so the $psf is simply the sum per our formula. If a floor had 5 suites but 2 suites have the same tier # then I need the average of the $psf on my chart not the sum of the two suites $psf.

  16. #16
    Registered User
    Join Date
    10-20-2008
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    51

    Re: if 2 cells match then enter 3rd cell

    I actually figured this out so no need to answer anymore.

    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. [SOLVED] Enter number in blank cell match number on sheet 2 & enter data from adjacent cell
    By Bikeman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2015, 08:36 PM
  2. If Cells Match Then enter Text
    By tootlepj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-08-2014, 08:10 PM
  3. Value Enter Cell Value - If match value in a range then prompt message box
    By llc0606 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-03-2013, 05:33 AM
  4. Replies: 3
    Last Post: 09-20-2013, 04:24 PM
  5. [SOLVED] How can i match values from 4 cells then enter value from a 5th cell?
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2013, 10:17 AM
  6. Replies: 1
    Last Post: 03-06-2013, 08:51 AM
  7. [SOLVED] Match data in cells then enter date in empty cell
    By MyComputerGuy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2012, 08:16 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