A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If/Then Formulas



 
 
Thread Tools Display Modes
  #11  
Old August 12th, 2008, 10:15 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default If/Then Formulas

I suspect the OP didn't want to broaden his/her horizons beyond IF

=E7*(4-3*F7+F7^2)/2


Nice

Mike

"Lars-Ã…ke Aspelin" wrote:

On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a clue as
to how ;-)

Thanx ~ Bkg.



Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke


Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke

  #12  
Old August 12th, 2008, 10:22 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_1106_]
external usenet poster
 
Posts: 1
Default If/Then Formulas

And even shorter than that...

=E7*INT(1+F7/3)

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Åke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Åke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use because
it is difficult to see through and hard to update when the
requirements change.

Lars-Åke


Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Åke



  #13  
Old August 12th, 2008, 10:25 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default If/Then Formulas

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke


Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke



  #14  
Old August 13th, 2008, 02:31 AM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default If/Then Formulas

Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke



  #15  
Old August 13th, 2008, 03:41 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_1108_]
external usenet poster
 
Posts: 1
Default If/Then Formulas

Nice! Not only is it one shorter than mine... it uses no function calls
either.

Rick


"Teethless mama" wrote in message
...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke



  #16  
Old August 13th, 2008, 03:52 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_1109_]
external usenet poster
 
Posts: 1
Default If/Then Formulas

LOL... you are going to kick yourself for missing this! One character
shorter...

=E7*(F7=3)+E7

Rick


"Teethless mama" wrote in message
...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke



  #17  
Old August 13th, 2008, 03:59 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_1110_]
external usenet poster
 
Posts: 1
Default If/Then Formulas

Of course, it is only shorter as long as the Column E address is an address
composed of 2 characters (in the range A1:Z9). If the address is 3
characters long, then the formulas are the same length; and, if the address
is 4 or more characters long, then your form of the formula will be shorter.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
LOL... you are going to kick yourself for missing this! One character
shorter...

=E7*(F7=3)+E7

Rick


"Teethless mama" wrote in
message ...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke




  #18  
Old August 13th, 2008, 02:19 PM posted to microsoft.public.excel.worksheet.functions
John C[_2_]
external usenet poster
 
Posts: 1,350
Default If/Then Formulas

And if F7 contains no data, every one of these 'shorter solutions' is
incorrect. I will even allow that there is DV allowing only whole numbers
from 1 to 3, but until F7 is populated, every formula will have some output
that will be incorrect.
--
John C


"Rick Rothstein (MVP - VB)" wrote:

Of course, it is only shorter as long as the Column E address is an address
composed of 2 characters (in the range A1:Z9). If the address is 3
characters long, then the formulas are the same length; and, if the address
is 4 or more characters long, then your form of the formula will be shorter.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
LOL... you are going to kick yourself for missing this! One character
shorter...

=E7*(F7=3)+E7

Rick


"Teethless mama" wrote in
message ...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke





  #19  
Old August 13th, 2008, 02:21 PM posted to microsoft.public.excel.worksheet.functions
John C[_2_]
external usenet poster
 
Posts: 1,350
Default If/Then Formulas

And of course, stealing from Ricks' formula:
=E7*(F7=3)+E7*(F7={1,2,3})
--
John C


"Rick Rothstein (MVP - VB)" wrote:

Of course, it is only shorter as long as the Column E address is an address
composed of 2 characters (in the range A1:Z9). If the address is 3
characters long, then the formulas are the same length; and, if the address
is 4 or more characters long, then your form of the formula will be shorter.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
LOL... you are going to kick yourself for missing this! One character
shorter...

=E7*(F7=3)+E7

Rick


"Teethless mama" wrote in
message ...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke





  #20  
Old August 13th, 2008, 02:30 PM posted to microsoft.public.excel.worksheet.functions
John C[_2_]
external usenet poster
 
Posts: 1,350
Default If/Then Formulas

No, mine failed too
--
John C


"John C" wrote:

And of course, stealing from Ricks' formula:
=E7*(F7=3)+E7*(F7={1,2,3})
--
John C


"Rick Rothstein (MVP - VB)" wrote:

Of course, it is only shorter as long as the Column E address is an address
composed of 2 characters (in the range A1:Z9). If the address is 3
characters long, then the formulas are the same length; and, if the address
is 4 or more characters long, then your form of the formula will be shorter.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
LOL... you are going to kick yourself for missing this! One character
shorter...

=E7*(F7=3)+E7

Rick


"Teethless mama" wrote in
message ...
Think again...This one even shorter than Rick.R

=((F7=3)+1)*E7


"Mike H" wrote:

I think we have a winner

"Rick Rothstein (MVP - VB)" wrote:

And even shorter yetg...

=E7*(1+INT(F7/3))

Rick


"Lars-Ã…ke Aspelin" wrote in message
...
On Tue, 12 Aug 2008 20:45:35 GMT, Lars-Ã…ke Aspelin
wrote:

On Tue, 12 Aug 2008 12:56:28 -0700, Bk Goto
wrote:

Hello and Good Day =)

I am in need of some help...

I would like to create a formula where
IF cell F7 =1 then E7*1, IF F7=2 then E7*1, IF F7=3, then E7*2

Any help would be appreciated, I know it can be done, but haven't a
clue
as
to how ;-)

Thanx ~ Bkg.


Just to add another formula to the collection you have already got:

=E7*(4-3*F7+F7*F7)/2

Shortest so far I guess, but also the least recommended to use
because
it is difficult to see through and hard to update when the
requirements change.

Lars-Ã…ke

Even shorter :-)

=E7*(4-3*F7+F7^2)/2

Lars-Ã…ke





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:32 PM.


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