Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
this was my code its a list of ingredients of noodels its for my project of school

=IF(A1=8712100756818;"ingredienten kruidige instant noedels met de smaak van kip Deegwaar 89,2% (noodles): TARWEBLOEM, palmvet, gemodificeerd aardappelzetmeel, zout, raapzaadolie, rijsmiddel (E500, E501), antioxidant (E306, E304). Kruidenmix 5,5%: Aroma (bevat TARWE, SOJA), suiker, zout, smaakversterker (E621, E635), sojasauspoeder (SOJABOON, TARWE, zout, moutextract, gistextract, palmolie), rode paprika, lente-ui, uipoeder, pepazer, antiklontermiddel E551 (nano), kleurstof E100, peterselie.Oliemix 5,3%: Plantaardige olie (rijstvlies, SESAM), knoflookextract, sjalotextract, uienextract, gemberextract. ",IF(A1=8712100750977;"Ingrediënten: Deegwaarmix 83,7%: noedels 95,8% (TARWEBLOEM, tapiocazetmeel, palmolie, zout, stabilisator (E466, E451), rijsmiddel (E500, E501), sojasaus (SOJABOON, TARWE, zout)), gedroogde groenten 4,2% (maïs, wortel, prei). , Kruidenmix 10,5%: aroma (bevat SOJA), suiker, zout, smaakversterker (E621, E635), sojasauspoeder (SOJABOON, TARWE, zout, moutextract, gistextract, palmolie), chilipeper, uipoeder, peper, antiklontermiddel E551 (nano), kleurstof E100, peterselie. , Oliemix 5,8%: plantaardige olie (rijstvlies, SESAM), knoflookextract, sjalotextract, uienextract, gemberextract. , E=door de E.G. goedgekeurde hulpstof. Kan ei, melk, schaaldieren, weekdieren en vis bevatten. Allergie-informatie Bevat: tarwe, soja, sesamzaad, glutenbevattende granen. Kan bevatten: eieren, vis, melk, weekdieren. ","ongeldig product"))


so it is in dutch just so u know

What I have tried:

ive tried to solve it but i could not find the mistake
Posted
Updated 11-Mar-17 22:21pm
v2
Comments
Michael_Davies 9-Mar-17 2:32am    
Is cell A1 Text cell or General/numeric, try putting quotes round the value;

=IF(A1="8712100756818";....

The first thing to do is to remove all that extraneous detail and create a simple IF expression that does work, using a few simple string values so you can see that the syntax is correct. Once that is working you can replace the simple values with the longer ones. Although a better idea is to put the different data values in fixed cells and just refer to the different cells in your IF expression.

Something like:
=IF(A1=8712100756818, $C$1, IF(A1=8712100750977, $D$1, $E$1)

Where C1, D1 and E1 contain the different values.
 
Share this answer
 
Comments
Member 13047706 9-Mar-17 9:48am    
so what do you mean with syntax
Richard MacCutchan 9-Mar-17 10:57am    
What do you mean? That question makes no sense.
Member 13047706 11-Mar-17 14:07pm    
im dutch and am not the best at english so pls explain
Richard MacCutchan 12-Mar-17 4:02am    
See the Solution below.
Bryian Tan 9-Mar-17 11:50am    
; should be ,
Put the following value in cell C10:
ingredienten kruidige instant noedels met de smaak van kip Deegwaar 89,2% (noodles): TARWEBLOEM, palmvet, gemodificeerd aardappelzetmeel, zout, raapzaadolie, rijsmiddel (E500, E501), antioxidant (E306, E304). Kruidenmix 5,5%: Aroma (bevat TARWE, SOJA), suiker, zout, smaakversterker (E621, E635), sojasauspoeder (SOJABOON, TARWE, zout, moutextract, gistextract, palmolie), rode paprika, lente-ui, uipoeder, pepazer, antiklontermiddel E551 (nano), kleurstof E100, peterselie.Oliemix 5,3%: Plantaardige olie (rijstvlies, SESAM), knoflookextract, sjalotextract, uienextract, gemberextract.


Put the following value in cell C11:
Ingrediënten: Deegwaarmix 83,7%: noedels 95,8% (TARWEBLOEM, tapiocazetmeel, palmolie, zout, stabilisator (E466, E451), rijsmiddel (E500, E501), sojasaus (SOJABOON, TARWE, zout)), gedroogde groenten 4,2% (maïs, wortel, prei). , Kruidenmix 10,5%: aroma (bevat SOJA), suiker, zout, smaakversterker (E621, E635), sojasauspoeder (SOJABOON, TARWE, zout, moutextract, gistextract, palmolie), chilipeper, uipoeder, peper, antiklontermiddel E551 (nano), kleurstof E100, peterselie. , Oliemix 5,8%: plantaardige olie (rijstvlies, SESAM), knoflookextract, sjalotextract, uienextract, gemberextract. , E=door de E.G. goedgekeurde hulpstof. Kan ei, melk, schaaldieren, weekdieren en vis bevatten. Allergie-informatie Bevat: tarwe, soja, sesamzaad, glutenbevattende granen. Kan bevatten: eieren, vis, melk, weekdieren.


Put the following value in cell C12:
ongeldig product



Put the following formula in cell C1:
=IF(A1=8712100756818,C10,IF(A1=8712100750977,C11,C12))


Note also the field separators in the IF statement are commas (,) not semi-colons (;) .
 
Share this answer
 
v2
VB
=IF(A1=8712100756818;"...",IF(A1=8712100750977;"...","ongeldig product"))

You have to make your mind, either you use "." as decimal separator and you use "," as parameter separator, either you use "," as decimal separator and you use ";" as parameter separator. You can't mix the two ways or writing.
Since you are in Netherlands, I suspect you need to write like this:
VB
=IF(A1=8712100756818;"...";IF(A1=8712100750977;"...";"ongeldig product"))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900