Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
s boak
 
Posts: n/a
Default INDIRECT Question I think

Hi Folks:

I have a table that's 3 columns something like this

Model Qty Price
AB123 1 $ 10.00
AB123 100 $ 9.10
AB123 1000 $ 8.00
AB125 2500 $ 7.50
BA222 1 $ 6.00
BA222 100 $ 5.50


In most cases, this format is followed . . .
Sometimes however, there is only pricing for 1 pc, or 1 and 100, or
sometimes, 1000 and 2500

What I'd like to have is:

AB123 $10.00 $9.10 $8.00
AB125 $7.50
BA222 $ 6.00 $ 5.50

I'm guessing this might be an INDIRECT function, but I need help on
constructing the formula.

Many thanks.
Steve


  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default INDIRECT Question I think

I got a result by setting up like this: headers Model, Qty, Price in
A1:C1; relevant data (the sample from your post) in B2:C7. I entered
numeric headers 1, 100, 1000, and 2500 in B10:E10 and representative
entries AB123, AB125, and BA222 in A11:A13. I entered this formula in
B11:
=SUMPRODUCT(--($A11=$A$2:$A$7),--(B$10=$B$2:$B$7),$C$2:$C$7)
.... which you can copy and paste to the other cells in the grid. You
can suppress the cells that return 0 with conditional formatting, if
desired.

  #3   Report Post  
Posted to microsoft.public.excel.misc
s boak
 
Posts: n/a
Default INDIRECT Question I think

Dave:
That is just way too cool . . . .
The sheet in 4,300 rows so I need to get all my qtys and model numbers, but
wow - - -
Many thanks
Steve

"Dave O" wrote in message
oups.com...
I got a result by setting up like this: headers Model, Qty, Price in
A1:C1; relevant data (the sample from your post) in B2:C7. I entered
numeric headers 1, 100, 1000, and 2500 in B10:E10 and representative
entries AB123, AB125, and BA222 in A11:A13. I entered this formula in
B11:
=SUMPRODUCT(--($A11=$A$2:$A$7),--(B$10=$B$2:$B$7),$C$2:$C$7)
... which you can copy and paste to the other cells in the grid. You
can suppress the cells that return 0 with conditional formatting, if
desired.



  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default INDIRECT Question I think

Glad to help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default INDIRECT Question I think

Glad to help!



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
Question on INDIRECT Peter Bernadyne Excel Discussion (Misc queries) 6 February 28th 06 04:51 PM
Indirect question saveas getting rid of formulas Excel Discussion (Misc queries) 6 February 3rd 06 03:36 PM
Pivot table question gary Excel Discussion (Misc queries) 1 January 10th 06 06:25 PM
Using the Indirect function with a sheet number instead of a sheet name JDB Excel Worksheet Functions 5 December 31st 05 03:03 PM
INDIRECT function question Joe Excel Worksheet Functions 1 February 14th 05 03:54 PM


All times are GMT +1. The time now is 08:07 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"