+ Reply to Thread
Results 1 to 7 of 7

Thread: If statement problem

  1. #1
    Registered User
    Join Date
    09-24-2011
    Location
    Vancouver Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    If statement problem

    =IF(L2592="A",'Master Factors'!$C$6,0)
    =IF(L2592="B",'Master Factors'!$C$8,0)
    =IF(L2592="C",'Master Factors'!$C$10,0)
    =IF(L2592="D",'Master Factors'!$C$12,0)

    I would like to have the equation cell consider these four formulas to populate one result. The values from "Master factors" are a numeric value.
    Last edited by Scotr; 09-24-2011 at 12:19 PM. Reason: closed

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,592

    Re: If statement problem

    Is nesting the ifs what you need?
    =IF(L2592="A",'Master Factors'!$C$6,IF(L2592="B",'Master Factors'!$C$8,IF(L2592="C",'Master Factors'!$C$10,IF(L2592="D",'Master Factors'!$C$12,0))))
    Copy each formula into the previous replacing the false condition,(0), each time.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,223

    Re: If statement problem

    Or for this particular case:

    =INDIRECT("'Master factors'!C"&4+2*(CODE(A2)-64))
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Registered User
    Join Date
    09-24-2011
    Location
    Vancouver Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: If statement problem

    Quote Originally Posted by Marcol View Post
    Is nesting the ifs what you need?
    =IF(L2592="A",'Master Factors'!$C$6,IF(L2592="B",'Master Factors'!$C$8,IF(L2592="C",'Master Factors'!$C$10,IF(L2592="D",'Master Factors'!$C$12,0))))
    Copy each formula into the previous replacing the false condition,(0), each time.
    Thank you perfect solution!

  5. #5
    Registered User
    Join Date
    08-24-2011
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: If statement problem

    Hi all,


    There is a sheet. there are some duplicate values in it. so i want to make those duplicate values unique by adding ( _ and the number) like frag_458830 then frag_458830_1 and so on.
    kindly help me.
    Attached Files Attached Files

  6. #6
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,592

    Re: If statement problem

    Hi sonuamit123

    Welcome to the Forum ...

    Read this Forum Rules before the moderators get you...

    Forum Rules
    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.

    If you can Edit/Delete your post, do so, if not you'll need to ask a moderator to help you.

    Cheers
    Last edited by Marcol; 09-24-2011 at 01:06 PM.

  7. #7
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: If statement problem

    Welcome to the forum, sonuamit123.

    Please take a few minutes to read the forum rules, and then start your own thread.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0