ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   HELP - If and but's formulas? (https://www.excelbanter.com/excel-worksheet-functions/197374-help-if-buts-formulas.html)

KLAbbott

HELP - If and but's formulas?
 
I have a spreadsheet which already contains the following formula:
=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52,IF((B12=9.7),4.52,IF((B 12=29.06),4.52,IF((B12=15.13),4.52,IF((B12=13.51), 4.52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the above,
and even if I do then because B12 still states one of the above figures then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.

Sandy Mann

HELP - If and but's formulas?
 
Try:

=IF(B25="Y",1.58,IF(OR(B12=8.12,B12=7.08),6.25,IF( OR(B12=9.87,B12=3.42,B12=9.7,B12=29.06,B12=15.13), 4.52,0)))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:
=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52,IF((B12=9.7),4.52,IF((B 12=29.06),4.52,IF((B12=15.13),4.52,IF((B12=13.51), 4.52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the
above,
and even if I do then because B12 still states one of the above figures
then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.




RagDyeR

HELP - If and but's formulas?
 
Try this:

=IF(B25="Y",1.58,IF(OR(B12={8.12,7.08}),6.25,IF(OR (B12={9.87,3.42,9.7,29.06,
15.13,13.51}),4.52,"")))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:

=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52
,IF((B12=9.7),4.52,IF((B12=29.06),4.52,IF((B12=15. 13),4.52,IF((B12=13.51),4.
52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the

above,
and even if I do then because B12 still states one of the above figures

then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.



RagDyeR

HELP - If and but's formulas?
 
You left out the last one Sandy, 13.51.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Sandy Mann" wrote in message
...
Try:


=IF(B25="Y",1.58,IF(OR(B12=8.12,B12=7.08),6.25,IF( OR(B12=9.87,B12=3.42,B12=9
..7,B12=29.06,B12=15.13),4.52,0)))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:

=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52
,IF((B12=9.7),4.52,IF((B12=29.06),4.52,IF((B12=15. 13),4.52,IF((B12=13.51),4.
52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the
above,
and even if I do then because B12 still states one of the above figures
then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.





KLAbbott

HELP - If and but's formulas?
 
Thank you both so much - I can now finish what I was trying to achieve!

"Ragdyer" wrote:

Try this:

=IF(B25="Y",1.58,IF(OR(B12={8.12,7.08}),6.25,IF(OR (B12={9.87,3.42,9.7,29.06,
15.13,13.51}),4.52,"")))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:

=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52
,IF((B12=9.7),4.52,IF((B12=29.06),4.52,IF((B12=15. 13),4.52,IF((B12=13.51),4.
52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the

above,
and even if I do then because B12 still states one of the above figures

then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.




Sandy Mann

HELP - If and but's formulas?
 
You're quite right RD, thanks for the catch. Your array version is better
anyway. That is why I hang out in the NG's, having retired and therefore
not having many *live* spreadsheets to deal with, if I did not try to keep
my hand in here I would very quickly forget all these nuances of XL.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ragdyer" wrote in message
...
You left out the last one Sandy, 13.51.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Sandy Mann" wrote in message
...
Try:


=IF(B25="Y",1.58,IF(OR(B12=8.12,B12=7.08),6.25,IF( OR(B12=9.87,B12=3.42,B12=9
.7,B12=29.06,B12=15.13),4.52,0)))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:

=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52
,IF((B12=9.7),4.52,IF((B12=29.06),4.52,IF((B12=15. 13),4.52,IF((B12=13.51),4.
52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the
above,
and even if I do then because B12 still states one of the above figures
then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.








RagDyeR

HELP - If and but's formulas?
 
We appreciate the feed-back.
--

Regards,

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

"KLAbbott" wrote in message
...
Thank you both so much - I can now finish what I was trying to achieve!

"Ragdyer" wrote:

Try this:

=IF(B25="Y",1.58,IF(OR(B12={8.12,7.08}),6.25,IF(OR (B12={9.87,3.42,9.7,29.06,
15.13,13.51}),4.52,"")))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"KLAbbott" wrote in message
...
I have a spreadsheet which already contains the following formula:

=IF((B12=8.12),6.25,IF((B12=7.08),6.25,IF((B12=9.8 7),4.52,IF((B12=3.42),4.52
,IF((B12=9.7),4.52,IF((B12=29.06),4.52,IF((B12=15. 13),4.52,IF((B12=13.51),4.
52,0))))))))
Now I want it to also say:
BUT IF B25 EQUALS 'Y' THEN OVERIDE ALL THE ABOVE AND ENTER 1.58

I am so stuck with this, it seems I cannot add another IF within the

above,
and even if I do then because B12 still states one of the above figures

then
even if B25 is a 'Y' then it won't overide it to say 1.52!

Grateful for all advice.







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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com