Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: how to put VLOOKUP into IF function

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    this is what i have

    SHEET 'Reference'
    Clients____Online$____Traditional$
    10_________$500__________$280
    20_________$400__________$200
    50_________$250__________$150


    SHEET B
    Mode________No.of Clients___Charge per Client
    Traditional______22
    Traditional______12
    Online__________20
    Online__________33


    how do i get the Charge per client? this is what i have inputted as my formula
    =IF(A1=Traditional, (VLOOKUP(B2,Reference!A2:C4,3)), (VLOOKUP(B2,Reference!A2:B4,2)))


    [ This Message was edited by: choungeehowe on 2002-03-04 00:11 ]

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Nearly there, you just need to put inverted commas around Traditional and maybe change one of your lookups-

    =IF(A2="Traditional", (VLOOKUP(B2,Reference!A2:C4,3)), (VLOOKUP(B2,Reference!A2:C4,2)))

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    hey kewl ... thanx ... fergot the inverted commas ... no wonder

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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