Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bob Newman
 
Posts: n/a
Default 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


  #2   Report Post  
Max
 
Posts: n/a
Default

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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup against multiple columns/worksheets question JCarter Excel Discussion (Misc queries) 8 March 9th 05 05:59 PM
VLookup Question Jean Excel Worksheet Functions 3 December 28th 04 03:41 PM
question about vlookup ˛ÓBear Excel Worksheet Functions 2 December 14th 04 06:09 PM
Vlookup Question Jeff Excel Discussion (Misc queries) 2 December 2nd 04 03:40 PM
vlookup question Alex Excel Worksheet Functions 2 November 11th 04 06:11 PM


All times are GMT +1. The time now is 05:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"