#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default look up and multiply

Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default look up and multiply

In D3:

=B10*LOOKUP(B3,{5,10,50,100},{1,2,3,4})

You don't define what happens when B3 < 5, so you'll either want to make sure it
doesn't happen or test for it.
--
Regards,
Fred


"Wibble" wrote in message
...
Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default look up and multiply

Thanks Folks
I owe you each a cyber beer ;0)
Problem ssorted.
Thanks again
Wibble

"Fred Smith" wrote:

In D3:

=B10*LOOKUP(B3,{5,10,50,100},{1,2,3,4})

You don't define what happens when B3 < 5, so you'll either want to make sure it
doesn't happen or test for it.
--
Regards,
Fred


"Wibble" wrote in message
...
Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble




  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default look up and multiply

Assuming B3 is an integer, perhaps:
=B10*MATCH(B3,{6,10,50,100})

If you don't wish to get #N/A when B3 is less than 6, then
=IF(B35, B10*MATCH(B3,{6,10,50,100}), "")



"Wibble" wrote:

Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default look up and multiply

Try this paste into D3
=IF(AND(B35,B3<10),B10*1,IF(AND(B3=10,B3<50),B10 *2,IF(AND(B3=50,B3<100),B10*3,IF(B3=100,B10*4,"" ))))


"Wibble" wrote:

Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble



  #6   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default look up and multiply

Just a thought - you could eliminate the AND's from the formula:

=B10*IF(B3=100,4,IF(B3=50,3,IF(B3=10,2,IF(B35, 1))))


"Mike" wrote:

Try this paste into D3
=IF(AND(B35,B3<10),B10*1,IF(AND(B3=10,B3<50),B10 *2,IF(AND(B3=50,B3<100),B10*3,IF(B3=100,B10*4,"" ))))


"Wibble" wrote:

Hi Folks........I know what I want but I don't know how to get it (oposite of
Anarchy in the UK :0)
This is what I am trying to do-
if B3 5<10 then D3 shows B10*1, if B3=10<50 then D3 shows B10*2, if
B3=50<100 then D3 shows B10*3, if B3=100 then D3 shows B10*4

Any suggestions please?

Thanks
Wibble

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
multiply, then add brenna Excel Discussion (Misc queries) 4 April 5th 07 02:14 AM
add value of 4 cells, multiply by 3 subtract 72 multiply by 80% George A. Yorks Excel Discussion (Misc queries) 10 October 25th 06 09:45 PM
Countif, then multiply?? Gee-off Excel Worksheet Functions 4 December 7th 05 08:55 PM
multiply Leonard Excel Worksheet Functions 1 October 19th 05 12:09 AM
how can I multiply 7feet and 6ft 8in? epout New Users to Excel 2 September 7th 05 01:08 AM


All times are GMT +1. The time now is 12:34 PM.

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"