+ Reply to Thread
Results 1 to 13 of 13

Multiple If Commands

Hybrid View

  1. #1
    Registered User
    Join Date
    02-19-2007
    Posts
    30

    VLookup

    Hi thank you very much it works great so easy when you have experts guiding you in the right direction.

    One further thing how would i make it so that the fields in a2, a3 etc appeared blank until the information was inserted in a1?

    Thanks very much for all your help.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =IF(ISNA(VLOOKUP(A1,Your Table,2,FALSE)),"",VLOOKUP(A1,Your Table,2,FALSE))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-19-2007
    Posts
    30

    VLookup Excellent Response

    Wow thank you, so much easier than i thought.

    I have 1 final column with a total price in i get a #VALUE! when there is nothing entered in the fields containing the VLOOKUP fields

    Is it possible to make this field invisible until the selection is made in A1?

    I again thank you for your time and patience

    kind Regards
    Mark

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Replace ISNA with ISERROR

    =IF(ISERROR(VLOOKUP(A1,Your Table,2,FALSE)),"",VLOOKUP(A1,Your Table,2,FALSE))
    VBA Noob

  5. #5
    Registered User
    Join Date
    02-19-2007
    Posts
    30

    Vlookup

    Thank you for your very fast response,

    I am manually entering a qty needed in a seperate column, this will be multiplied by the result in A4 my formula as =suma5*A4, when a value is displayed in a4 it works fine but when nothing is there it says #VALUE! this is my problem.
    Apologies for not being slightly more specific.


    Many Thanks

    Mark

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Again use a if statement

    =IF(ISERROR(A5*A4),"",A5*A4)
    VBA Noob

  7. #7
    Registered User
    Join Date
    02-19-2007
    Posts
    30

    Smile VLOOKUP sorted

    Thank you very much it works a treat,

    Anyone reading this post will find it most helpful i did

    Thanks Again

    Mark :-)

+ 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.6.0 RC 1