ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   vlookup question please (https://www.excelbanter.com/excel-worksheet-functions/18041-vlookup-question-please.html)

Bob Newman

vlookup question please
 
I think this is vvlookup anyway. I have 3 columns. A has one of several
letters of the alphabet, B has one of about ten different dollar figures, C
is the cell for the lookup amount (commission on a sale).

I want it to figure that if column A contains the letter "N" lookup in a
table to find the commission amount based on the sale amount in column B.
Here's the part that stumps me. I also want the formula to say if column A
has the letter "U" to enter a fixed amount as the commission. Column A may
contain several other letters but "N" and "U" are the only ones I am
interested in.
--

Thanks in advance... Bob



Max

Maybe something along these lines ..

Assuming the commission table is
in Sheet2, in A1:B3, viz.:

1 $5.00
100 $10.00
1000 $100.00

In Sheet1
-----------
With col A containing the alphas,
and col B has the amounts

Put in C2:

=IF(A2="","",IF(A2="U",5,IF(AND(A2="N",B2=1),VLOO KUP(B2,Sheet2!A:B,2,1),"")
))

(above assumes the fixed commission is $5.00, when col A contains "U")

Format C2 as currency and copy down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Bob Newman" wrote in message
news:Ke6_d.17770$2s.3681@lakeread06...
I think this is vvlookup anyway. I have 3 columns. A has one of several
letters of the alphabet, B has one of about ten different dollar figures,

C
is the cell for the lookup amount (commission on a sale).

I want it to figure that if column A contains the letter "N" lookup in a
table to find the commission amount based on the sale amount in column B.
Here's the part that stumps me. I also want the formula to say if column

A
has the letter "U" to enter a fixed amount as the commission. Column A

may
contain several other letters but "N" and "U" are the only ones I am
interested in.
--

Thanks in advance... Bob






All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com