how to put VLOOKUP into IF function

choungeehowe

New Member
Joined
Mar 2, 2002
Messages
13
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
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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)))
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,947
Members
448,534
Latest member
benefuexx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top