+ Reply to Thread
Results 1 to 9 of 9

Display a cell value from another cell based on a a certain criteria

  1. #1
    Registered User
    Join Date
    08-12-2015
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Question Display a cell value from another cell based on a a certain criteria

    Hello everyone!

    As I am fairly new to Excel I am having issues with the following thing I am trying to do. I will try to explain it as clearly as possible.

    I have 2 different cells with a certain value (for example: A & B) and 1 cell (C) where I can fill in 1 option of the 3. (TOW, LDW and ZFW).

    The thing is, I have 1 cell (D) where I want it to display the value from either A or B or no value at all. So if I select TOW in cell C I want it to display the value from cell A in cell D. And when I select LDW I want it to show the value from B in D. and when I select ZFW, no value at all.

    Is there any way of doing this? Thanks in advance for the help!

    Kind regards,

    Amar
    Last edited by AmarW; 08-12-2015 at 06:10 AM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Display a cell value from another cell based on a a certain criteria

    Formula in D1
    =IF(C3="TOW",A1,IF(C3="LDW",B1,""))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Display a cell value from another cell based on a a certain criteria

    Put this1:

    =IF(C1="TOW",A1,IF(C1="LDW",B1,""))

    You will probably need to use semicolons instead of commas to separate the terms.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Display a cell value from another cell based on a a certain criteria

    hello,

    I had worked with your example..see if it works for u

    Regards,
    Jaya
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-12-2015
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Re: Display a cell value from another cell based on a a certain criteria

    Thanks! I am getting close now. The only thing is, if I select ZFW I won't get a 0 as a value... so what should I add to get 0 in cell D when I select ZFW?

  6. #6
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Display a cell value from another cell based on a a certain criteria

    Use this

    =IF(C1="TOW",A1,IF(C1="LDW",B1,IF(C1="ZFW","0")))

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Display a cell value from another cell based on a a certain criteria

    Change the "" at the end of the formula to 0 instead:

    =IF(C1="TOW",A1,IF(C1="LDW",B1,0))

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    08-12-2015
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    3

    Re: Display a cell value from another cell based on a a certain criteria

    Ah yes, thank you guys so much. Its very logical but 2 hours of sleep doesn't help with clear thinking. I kept getting errors probably due to an error in the spacing/semicolons.

    Again, really appreciate it!

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Display a cell value from another cell based on a a certain criteria

    Glad to be of help - thanks for the rep.

    Pete

+ 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: 12-08-2014, 06:22 PM
  2. Replies: 8
    Last Post: 05-17-2014, 02:33 PM
  3. Display data in cell "N" times based off of multiple criteria
    By ronalgreen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2013, 10:02 AM
  4. Replies: 4
    Last Post: 08-13-2013, 09:28 AM
  5. Display data from multiple cell in a single cell, based on criteria
    By Mothman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-08-2012, 07:24 AM
  6. 1 of 3 choices to display in cell based on fulfillment criteria
    By dataguy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-08-2012, 01:39 PM
  7. Display a Cell If Another Cell Meets Criteria
    By Bob McCusker in forum Excel General
    Replies: 1
    Last Post: 07-22-2010, 02:30 AM

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