+ Reply to Thread
Results 1 to 5 of 5

formula problems

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    formula problems

    I need help with this formula.
    If cell D9 is blank this formula result on M9 need to be 0 or blank. Is this possible?

    =IF(E9=TRUE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$I$36,9,TRUE),"0")+IF(E9=FALSE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$D$36,4,TRUE),"0")

    see attached


    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: formula problems

    Just nest it inside an IF statement like so

    =IF(D9<>"",IF(E9=TRUE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$I$36,9,TRUE),0)+IF(E9=FALSE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$D$36,4,TRUE),0),0)

    I also removed the "" from around your zeros as that just changes the number 0 to the text 0. Not sure you want that.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: formula problems

    Hi,

    Check the attached file and hope this will help you:

    test.xlsm

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  4. #4
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: formula problems

    This works.
    Thanks!

    Quote Originally Posted by i.r.smith View Post
    I need help with this formula.
    If cell D9 is blank this formula result on M9 need to be 0 or blank. Is this possible?

    =IF(E9=TRUE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$I$36,9,TRUE),"0")+IF(E9=FALSE,VLOOKUP(J5,'GLASS-MAT'!$A$22:$D$36,4,TRUE),"0")

    see attached


    Thanks for your help!

  5. #5
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: formula problems

    Hi Smith,

    Please mark this thread as solved if you feel you got your solution and Click on "* Add Reputation" as a way to say thanks.


    Regards,
    Paresh J

+ 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. Formula problems
    By m.cardoso89 in forum Excel General
    Replies: 5
    Last Post: 03-13-2014, 02:45 PM
  2. formula problems
    By lnjr in forum Excel General
    Replies: 1
    Last Post: 11-15-2008, 02:37 PM
  3. Formula Problems
    By Brian 931 in forum Excel General
    Replies: 1
    Last Post: 09-04-2008, 12:39 PM
  4. Formula Problems
    By jimmy@9830 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2008, 03:08 PM
  5. Formula Problems
    By BarbB in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-03-2007, 10:48 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