How to "=B14:B15" cell next to each other

DarkSmile

Board Regular
Joined
Feb 22, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hallo,

I will try my best to explain what I want, it's probably super easy but can't find an answer on google..
(don't mind all the formulas, there is probably a easier way but it works (?) ;) )

Here what I'm trying to do: Cell B14 & B15 change value (depends on parameters wich one changes (they never change together, its always just one)), what I want is a formula like "=B14" but than with both I tried "=B14:B15" but the issue is it does this than (printscreen):

1614089885700.png


What I want is that he only takes the one thats not 0 but keeps it in the same cell, now he's doing it as followed
1614089968517.png

1614090002003.png


TCA berekening.xlsm
ABCD
1Benodigde parameters
2
3Parameters : ACS-002 Ind Lait
4Klein bedrijf? Nee
5Aantal Producttypes:4 of meer
6Producttypes:1
7Productstromen naar de dierenvoeding?:
8
9FALSE
104 of meer
11Klein bedrijfFALSE
12Normaal bedrijf16
13Dierenvoeders0
14Totaal klein0
15Totaal normaal16
16Totaal auditduur:0
1716
18
19
20
21
22Dropdown list: Klein bedrijfDropdown list: AantalDropdown list: ProducttypesDropdown list: Dierenvoeding
23Ja1UHT-consumptiemelkdranken en UHT- roomJa
24NeeFALSEGesteriliseerde consumptiemelkdranken en roomNee
252Gepasteuriseerde consumptiemelkdranken en room
26FALSEGefermenteerde melk
273Thermisch behandelde gefermenteerde melk
28FALSEVerse kaas
294 of meerHarde kaas op basis van gepasteuriseerde melk
30TRUEMozzarella op basis van gepasteuriseerde melk
31Zachte kaas op basis van gepasteuriseerde melk
32Zure boter op basis van gepasteuriseerde melk, verse zure karnemelk, thermisch behandelde zure karnemelk
33Melkpoeder
34Neutrale desserts
35Rauwmelkse kazen
36Zure boter op basis van rauwe melk en verse zure karnemelk
37
38
39
40Normaalsmall enterprise
41Aantal producttypesTe besteden mandagen (uren)Aantal producttypesTe besteden mandagen (uren)
4211014
4321226
4431438
454 of meer164 of meer10
46Dierenvoeders (uren)
472
ACS-002
Cell Formulas
RangeFormula
B9B9=IF($B$4="Ja","TRUE")
B10B10=$B$5
B11B11=IF(B4="Ja",IF(B24,D42,IF(B26,D43,IF(B28,D44,IF(B30,D45,"ERROR")))))
B12B12=IF(B4="Nee",IF(B24,B42,IF(B26,B43,IF(B28,B44,IF(B30,B45,"ERROR")))))
B13B13=IF(B7="Ja",A47,)
B14B14=IF(B11<>"FALSE",B11+B13,)
B15B15=IF(B12<>"FALSE",B12+B13,)
B16:B17B16=B14:B15
B24B24=B10=B23
B26B26=B10=B25
B28B28=B10=B27
B30B30=B10=B29
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B4List=$A$23:$A$24
B5List=$B$23:$B$29
B6List=$C$23:$C$36
B7List=$D$23:$D$24
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUM(B14:B15)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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