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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

help with formula



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2005, 07:04 PM
Scudo
external usenet poster
 
Posts: n/a
Default help with formula

In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would show a
total of £250


thanks


  #3  
Old July 2nd, 2005, 07:22 PM
RagDyeR
external usenet poster
 
Posts: n/a
Default

Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would show a
total of £250


thanks



  #4  
Old July 2nd, 2005, 07:39 PM
Scudo
external usenet poster
 
Posts: n/a
Default

That worked RD

thanks

"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would show

a
total of £250


thanks





  #5  
Old July 2nd, 2005, 11:55 PM
CLR
external usenet poster
 
Posts: n/a
Default

That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would show

a
total of £250


thanks





  #6  
Old July 3rd, 2005, 12:42 AM
Scudo
external usenet poster
 
Posts: n/a
Default

Chuck and RD

Clever! `It works` and for the life of me I can`t (couldn`t ever never, old
time! or new time!) understand either of them. I look at the formulas and
try and work out how they work. I don`t know what they feed you guys on but
it sure seems to work, keep eating the stuff :-)

and thanks for your help
really do appreciate it.

Scudo


"CLR" wrote in message
...
That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would

show
a
total of £250


thanks







  #7  
Old July 3rd, 2005, 07:38 AM
Ragdyer
external usenet poster
 
Posts: n/a
Default

Thanks for the feed-back.

As far as the formula is concerned, just remember,
True = 1
False = 0

Put this in a cell:
=(I8=1)
And enter a 1 in I8
You get True

Change I8 to a 2
You get False

NOW, change the formula to any of these, and see what happens:
=--(I8=1)
=(I8=1)+0
=(I8=1)*1

So,
If I8=1 is True, then I8=2 *must* be False, so the formula becomes,
(1*150)+(125*0)
(150)+(0)
150

And of course, vice versa if I8 = 2

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Scudo" wrote in message
...
Chuck and RD

Clever! `It works` and for the life of me I can`t (couldn`t ever never,

old
time! or new time!) understand either of them. I look at the formulas

and
try and work out how they work. I don`t know what they feed you guys on

but
it sure seems to work, keep eating the stuff :-)

and thanks for your help
really do appreciate it.

Scudo


"CLR" wrote in message
...
That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would

show
a
total of £250


thanks








  #8  
Old July 3rd, 2005, 05:07 PM
CLR
external usenet poster
 
Posts: n/a
Default

You're welcome Scudo.................
My formulas were just basic IF statements, =IF(I8=1,150,IF(I8=2,125,"")) in
M7 .....(IF I8 equals 1, then return 150, otherwise, IF I8 equals 2, then
return 125 otherwise leave the cell blank.)

and =IF(I8=2,125,"") in M8.....(IF I8 equals 2, then return 125, otherwise
leave the cell blank)........

Both were then wrapped in TEXT statements to display the leading POUND
sign..."CHAR(163)".

If you wanted to do further math with the now TEXT results, you could strip
out the number part to multiply the result by 2 with...........
=MID(M7,FIND(CHAR(163),M7,1)+1,99)*2...which says, in M7, find the POUNDsign
and go to the back side of it " the +1", and take the next 99 characters and
multiply by 2.....of course there's only 3 more characters so it takes them
all.

And you can put the POUND sign back in with CONCATENATION.........

=CHAR(163)&MID(M7,FIND(CHAR(163),M7,1)+1,99)*2


Vaya con Dios,
Chuck, CABGx3



"Scudo" wrote in message
...
Chuck and RD

Clever! `It works` and for the life of me I can`t (couldn`t ever never,

old
time! or new time!) understand either of them. I look at the formulas

and
try and work out how they work. I don`t know what they feed you guys on

but
it sure seems to work, keep eating the stuff :-)

and thanks for your help
really do appreciate it.

Scudo


"CLR" wrote in message
...
That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it would

show
a
total of £250


thanks









  #9  
Old July 3rd, 2005, 11:11 PM
Scudo
external usenet poster
 
Posts: n/a
Default

Thanks CLR I have printed your reply and gonna spend some time trying to
understand and play with it, It used to be easier when I was a lot younger
now its enjoyable but frustrating, I love doing spreadsheet stuff but the
brain aint what it used to be..ooooo to be young again. :-)


"CLR" wrote in message
...
You're welcome Scudo.................
My formulas were just basic IF statements, =IF(I8=1,150,IF(I8=2,125,""))

in
M7 .....(IF I8 equals 1, then return 150, otherwise, IF I8 equals 2, then
return 125 otherwise leave the cell blank.)

and =IF(I8=2,125,"") in M8.....(IF I8 equals 2, then return 125, otherwise
leave the cell blank)........

Both were then wrapped in TEXT statements to display the leading POUND
sign..."CHAR(163)".

If you wanted to do further math with the now TEXT results, you could

strip
out the number part to multiply the result by 2 with...........
=MID(M7,FIND(CHAR(163),M7,1)+1,99)*2...which says, in M7, find the

POUNDsign
and go to the back side of it " the +1", and take the next 99 characters

and
multiply by 2.....of course there's only 3 more characters so it takes

them
all.

And you can put the POUND sign back in with CONCATENATION.........

=CHAR(163)&MID(M7,FIND(CHAR(163),M7,1)+1,99)*2


Vaya con Dios,
Chuck, CABGx3



"Scudo" wrote in message
...
Chuck and RD

Clever! `It works` and for the life of me I can`t (couldn`t ever never,

old
time! or new time!) understand either of them. I look at the formulas

and
try and work out how they work. I don`t know what they feed you guys on

but
it sure seems to work, keep eating the stuff :-)

and thanks for your help
really do appreciate it.

Scudo


"CLR" wrote in message
...
That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show £125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it

would
show
a
total of £250


thanks











  #10  
Old July 4th, 2005, 12:35 AM
CLR
external usenet poster
 
Posts: n/a
Default

I hear ya Scudo...........I'll turn 67 in September. I had done a little
Symphony stuff before, but never really started into this stuff strong until
after my Triple Bypass.......and I figured at that point, "what the
he**".........give it a go, and it's been loads of fun. I tell you tho,
like most things, I really have to keep after it all the time or it gets
away from me.....but I''ll tell you one thing, I do learn something new
every day here, and really enjoy the experience of both learning something
myself, and helping other people where I can.........keep coming back Scudo,
keep reading the newsgroup and you'll soon be responding..........you got
the bug.......

Vaya con Dios,
Chuck, CABGx3






"Scudo" wrote in message
. uk...
Thanks CLR I have printed your reply and gonna spend some time trying to
understand and play with it, It used to be easier when I was a lot

younger
now its enjoyable but frustrating, I love doing spreadsheet stuff but the
brain aint what it used to be..ooooo to be young again. :-)


"CLR" wrote in message
...
You're welcome Scudo.................
My formulas were just basic IF statements,

=IF(I8=1,150,IF(I8=2,125,""))
in
M7 .....(IF I8 equals 1, then return 150, otherwise, IF I8 equals 2,

then
return 125 otherwise leave the cell blank.)

and =IF(I8=2,125,"") in M8.....(IF I8 equals 2, then return 125,

otherwise
leave the cell blank)........

Both were then wrapped in TEXT statements to display the leading POUND
sign..."CHAR(163)".

If you wanted to do further math with the now TEXT results, you could

strip
out the number part to multiply the result by 2 with...........
=MID(M7,FIND(CHAR(163),M7,1)+1,99)*2...which says, in M7, find the

POUNDsign
and go to the back side of it " the +1", and take the next 99 characters

and
multiply by 2.....of course there's only 3 more characters so it takes

them
all.

And you can put the POUND sign back in with CONCATENATION.........

=CHAR(163)&MID(M7,FIND(CHAR(163),M7,1)+1,99)*2


Vaya con Dios,
Chuck, CABGx3



"Scudo" wrote in message
...
Chuck and RD

Clever! `It works` and for the life of me I can`t (couldn`t ever

never,
old
time! or new time!) understand either of them. I look at the

formulas
and
try and work out how they work. I don`t know what they feed you guys

on
but
it sure seems to work, keep eating the stuff :-)

and thanks for your help
really do appreciate it.

Scudo


"CLR" wrote in message
...
That's very clever RD........I've never seen it done like that.

I would have just used the old time
=TEXT(IF(I8=1,150,IF(I8=2,125,"")),CHAR(163)&"000" ) in M7
and =TEXT(IF(I8=2,125,""),CHAR(163)&"000") in M8.

Vaya con Dios,
Chuck, CABGx3



"RagDyeR" wrote in message
...
Try this:

In M7:
=(I8=1)*150+125*(I8=2)

In M8:
=125*(I8=2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may

benefit!
==============================================

"Scudo" wrote in message
...
In cell I8 I put a 1 or 2
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M7 to show £125 and cell M8 to show

£125

As a variation if its easier I would be happy with cell I8
If I put 1 then I want cell M7 tp show £150
If I put 2 then i want cell M8 to show £100, as either way it

would
show
a
total of £250


thanks













 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula checking multiple worksheets sonic-the-mouse Worksheet Functions 11 June 6th, 2005 06:37 PM
Formula to Count and Return Most common Value in a Dynamic Named Range Tinä General Discussion 1 October 23rd, 2004 08:51 PM
Formula works in some cells of a colum but not others? Jerry W. Lewis Worksheet Functions 4 May 8th, 2004 04:50 AM
generating formula with a formula Lisa Linard Worksheet Functions 2 November 27th, 2003 12:03 PM
Copy formula problem AWilliams722 Worksheet Functions 0 November 13th, 2003 10:37 PM


All times are GMT +1. The time now is 08:41 AM.


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