#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default formula for...

What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default formula for...

One idea is to use a vlookup ..

In Sheet1, in A1:B1 down,
you have your reference table:

6 6.6
7 7.2
8 7.8
etc

Then in any other sheet,
if the lookup value is in B3,
place this in B8: =IF(B3="","",VLOOKUP(B3,Sheet1!A:B,2,0)*B6)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"kitcatrn" wrote:
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default formula for...

One method which allows for further additions of numbers and multipliers.

=LOOKUP(B3,{6,7,8},{6.6,7.2,7.8})*B6


Gord Dibben MS Excel MVP

On Sun, 25 Jan 2009 17:05:01 -0800, kitcatrn
wrote:

What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default formula for...


Use a nested IF statement like this:
=IF(B6=6,B6*6.6,IF(B6=7,B6*7.2,IF(B6=8,B6*7.8,0)))

kitcatrn;198152 Wrote:
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn



--
The Code Cage Team

Regards,
The Code Cage Team
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=54568

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default formula for...

If your multipliers are accurate and if the 0.6 difference between
multipliers remains constant for other possible values for B3 (if any)...

=B6*(3+0.6*B3)

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default formula for...

One other way...

=IF(OR(B3={6,7,8}),B6*(3+0.6*B3),"x")

= = =
Dana DeLouis


kitcatrn wrote:
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default formula for...

So no matter what number I put in there it will work? as long as 0.6
difference is right?
--
Kitcatrn


"Rick Rothstein" wrote:

If your multipliers are accurate and if the 0.6 difference between
multipliers remains constant for other possible values for B3 (if any)...

=B6*(3+0.6*B3)

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default formula for...

Thank you so much Rick this is awesome and saves so much time for me!!! Just
a little redneck trying to figure out an easier softer way!!! LOL
--
Kitcatrn


"Rick Rothstein" wrote:

If your multipliers are accurate and if the 0.6 difference between
multipliers remains constant for other possible values for B3 (if any)...

=B6*(3+0.6*B3)

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default formula for...

Yep... as long as the difference in the multipliers is 0.6 for every
increase of 1 in B3, that formula will work.

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
So no matter what number I put in there it will work? as long as 0.6
difference is right?
--
Kitcatrn


"Rick Rothstein" wrote:

If your multipliers are accurate and if the 0.6 difference between
multipliers remains constant for other possible values for B3 (if any)...

=B6*(3+0.6*B3)

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default formula for...

It is indeed very nice to use math instead of "IF" statements! (And should
be faster.)
For thouse of us who cannot remember the Operator Precedence and like
self-documenting formulas, I suggest:
=B6*(3+(0.6*B3))

"Rick Rothstein" wrote:

If your multipliers are accurate and if the 0.6 difference between
multipliers remains constant for other possible values for B3 (if any)...

=B6*(3+0.6*B3)

--
Rick (MVP - Excel)


"kitcatrn" wrote in message
...
What formula do i use if
b3 = 6 then b8 equals b6 x 6.60
b3 = 7 then b8 equals b6 x 7.20
b3 = 8 then b8 eguals b6 x 7.80
I acn't figure it out!!!
Thanks
Kitcatrn



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



All times are GMT +1. The time now is 08:10 PM.

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

About Us

"It's about Microsoft Excel"