Confusing combination of cell references and the IF function

MisterGB

New Member
Joined
Nov 13, 2015
Messages
10
Hi,

I am in a bit of a pickle. I am currently completing some exercises to learn excel. The current function in question is the IF function along with its logical operator friends IF(OR and IF(AND.

The document is in Dutch, but I have translated the instructions if I need to share the document somehow to make it make sense for you guys.

Below is the task:
--------------------------------------------------------------------------------------------------------

If the total cost inclusive BTW (G26) is smaller than 500 euros and the total number of pieces (C23) is at least 10 (E5), then they receive a biro (balpen, G5).

For total costs of more than 600 euros (F5), but also if the total number of pieces is more than 50 (E7), then they receive a radio (G7).

In all other situations they receive a timepiece (uurwerk, G6).

CONDITIONS
- This all needs to be put into one formula in cell D8 using IF, IF(OR, IF(AND.
- We may only use cell references and thus no manual input.
--------------------------------------------------------------------------------------------------------

These my completed formulas that I have tried:

=IF(AND(C23>=E5,G26<f5),g5,"")&if(or(g26>F6,C23>E7),G7,"G6")

</f5),g5,"")&if(or(g26>
or

=IF(AND(C23>=E5,G26<f5),g5,"")&if(or(g26>F6,C23>E7),G7,"")&IF(NOT(AND(C23>=E5,G26<f5,g26>F6,C23>E7)),G6,"")

Original in Dutch: =ALS(EN(C23>=E5;G26<f5);g5;"")&als(of(g26>F6;C23>E7);G7;"")&ALS(NIET(EN(C23>=E5;G26<f5;g26>F6;C23>E7));G6;"")

</f5;g26></f5);g5;"")&als(of(g26>
My formula works fine until I need to add the "In all other situations they receive a timepiece" part which is the entire of IF(NOT or simply G6. In both cases I end up with "balpenuurwerk".

Sorry for the horrifically long post and thank you in advance.

MisterGB


uVFhSTG



<tbody>
</tbody>

</f5,g26></f5),g5,"")&if(or(g26>
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Solution found: I had to nest the IF functions at the point where the action for a FALSE was required. I just learned to nest properly!
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top