Consulting

Results 1 to 2 of 2

Thread: If statement within formula

  1. #1

    If statement within formula

    Hi

    Well basically, I have several vlookups which get data from another page, depending what ID number is entered int a specific cell, below is an example of one of the vlookup statements.

    =VLOOKUP(B4, DataCustomerDetails!A8:L27,2,FALSE)
    Now I would like an If statement (formula), which looks at the cell B4 for the value, then looks at the sheet named DataCustomerDetails for the value, if it isnt their, a messagebox should popup saying invalid ID or something.

    Hel appreciated

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IF(ISNA(vlookup_formula),"Invalid,"vlookup_formula)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •