+ Reply to Thread
Results 1 to 7 of 7

If Function Problem

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    If Function Problem

    Hi, I apologise if this question is really simple/stupid, but i am a beginner at excel. So
    I want to get a cell to display the value of another cell. and i am trying to do this with a range. Here is the formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The values in Data2! are the ones that i am trying to display.
    CA, CL, NCA, NCL, and E are my ranges.
    D1 is a value in the ranges
    D1 is a value that will constantly change.

    But my formula gives a #Value! everytime and i am not sure what i am doing wrong.

    Thank you to anyone who can help me with my problem.
    Last edited by knightx555; 04-28-2013 at 01:19 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,078

    Re: If Function Problem

    Try

    =IF($D$1="CA",Data2!$D27,IF($D$1="CL",Data2!$D39,IF($D$1="NCL",Data2!$D55,IF($D$1="NCA",Data2!$D17,IF($D$1="E",Data2!$D66,"Error")))))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: If Function Problem

    CA is a range
    D1 is a cell
    A cell can never be equal to a range.
    Please post a xls file
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    04-25-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If Function Problem

    Thanks Special-K, the formula worked but it did not give me the result i wanted.

    Here is the excel file

    Model.xlsm

    I am trying to get the left column to display names in the Data2! sheet.

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If Function Problem

    Please remove this reply, because i do not know how
    Attached Files Attached Files
    Last edited by knightx555; 04-29-2013 at 12:21 AM. Reason: Accidental double post

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: If Function Problem

    Is this what you meant?
    Change the yellow cells and see what happend with the orange cells.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-25-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: If Function Problem

    Thanks a lot that is exactly what I needed.

    You have no idea how long I have been trying to come up with a solution for this.

    You really saved my life.

    But, if i may, i have one last question. It is about the formula, it is really confusing. For the sake of others who might be viewing this thread and for my own, i was hoping you would give an explanation. Also to prevent myself from asking these kinds of questions again and feeling like

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks again
    Last edited by knightx555; 04-29-2013 at 09:48 AM.

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: If Function Problem

    In vlookup formula you use a range to seach in,
    If you give different ranges different names then you can use the indirect formule
    The indirect formula point to a cell with a name, now you can quickly change the different ranges

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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