Adding an argument to a formula for three lookup arrays?

BraydenMSB

New Member
Joined
Feb 18, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
This is my current formula, the arrays are totally fine and the indexing is good.
=IF(B3<=24,INDEX($AQ$3:$BG$13,MATCH(B5,$AP$3:$AP$13,0),MATCH(B4,$AQ$2:$BG$2,-1)),IF(B3<=30,INDEX($AQ$31:$BG$41,MATCH(B5,$AP$3:$AP$13,0),MATCH(B4,$AQ$2:$BG$2,-1)),IF(B3>30,INDEX($AQ$59:$BG$69,MATCH(B5,$AP$3:$AP$13,0),MATCH(B4,$AQ$2:$BG$2,-1)),0)))

I need to add an argument to check if B17="Yes-Coastal"
For each of the index points, all of which are different widths.

and if so it needs to double the normal index BUT only on certain heights (13 and 14 feet). I also need to add a check for 15-16 foot, because these cannot be added on the coastal condition. This one has me stumped, anyone else have any insight? I will attach the arrays here. l've, just been scratching my head on this one
1582235766002.png

1582235778886.png

1582235794440.png
 

Attachments

  • 1582235669700.png
    1582235669700.png
    27 KB · Views: 2
  • 1582235747033.png
    1582235747033.png
    36.5 KB · Views: 1

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,
Have you tried something along
=IF(AND(B17="Yes-Coastal",RC1="13'",RC2="14'"),then formula*2,then formula)
 
Upvote 0
Here is an alternative with only one DB for the costing.
The data is not accurate so it will need to be validated.
It is assuming that the values for Width, Height and Length are exact.
excel.xlsx
ABCDEFGHIJKLMNOPQRS
1WidthHeightLengthTypeAmount
22414101yes-coastal5100
3
4WidthHeight10196918681767166615651464136312621
524163175303528952755261524752335219520551915177516351495135512151075935
62415286027352610248523602235211019851860173516101485136012351110985860
72414255024452340223521302025192018151710160515001395129011851080975870
82413224021552070198519001815173016451560147513901305122011351050965880
924121920184517701695162015451470139513201245117010951020945870795720
1024111600153514701405134012751210114510801015950885820755690625560
112410128012251170111510601005950895840785730675620565510455400
12249955920885850815780745710675640605570535500465430395
13248640620600580560540520500480460440420400380360340320
14247320310300290280270260250240230220210200190180170160
1524600000000000000000
16301647634553434341333923371335033293308328732663245322432033182316131403
17301542904103391537283540335331652978279026032415222820401853166514781290
18301438253668351033533195303828802723256524082250209319351778162014631305
19301333603233310529782850272325952468234022132085195818301703157514481320
20301228802768265525432430231822052093198018681755164315301418130511931080
213011240023032205210820101913181517181620152314251328123011331035938840
223010192018381755167315901508142513431260117810951013930848765683600
23309143313801328127512231170111810651013960908855803750698645593
24308960930900870840810780750720690660630600570540510480
25307480465450435420405390375360345330315300285270255240
2630600000000000000000
27401671446829651461995884556952544939462443093994367933643049273424192104
28401564356154587355915310502947484466418539043623334130602779249822161935
29401457385501526550294793455643204084384836113375313929032666243021941958
30401350404849465844664275408438933701351033193128293627452554236321711980
31401243204151398338143645347633083139297028012633246422952126195817891620
32401136003454330831613015286927232576243022842138199118451699155314061260
3340102880275626332509238522612138201418901766164315191395127111481024900
34409214920701991191318341755167615981519144013611283120411251046968889
354081440139513501305126012151170112510801035990945900855810765720
36407720698675653630608585563540518495473450428405383360
3740600000000000000000
BraydenMSB
Cell Formulas
RangeFormula
F2F2=IF(AND(D2="yes-coastal",OR(B2=15,B2=16)),"check",IF(AND(D2="yes-coastal",OR(B2=13,B2=14)),SUMPRODUCT((A5:A37=A2)*(B5:B37=B2)*(C4:S4=C2),C5:S37)*2,SUMPRODUCT((A5:A37=A2)*(B5:B37=B2)*(C4:S4=C2),C5:S37)))
 
Upvote 0
Here is an alternative with only one DB for the costing.
The data is not accurate so it will need to be validated.
It is assuming that the values for Width, Height and Length are exact.
excel.xlsx
ABCDEFGHIJKLMNOPQRS
1WidthHeightLengthTypeAmount
22414101yes-coastal5100
3
4WidthHeight10196918681767166615651464136312621
524163175303528952755261524752335219520551915177516351495135512151075935
62415286027352610248523602235211019851860173516101485136012351110985860
72414255024452340223521302025192018151710160515001395129011851080975870
82413224021552070198519001815173016451560147513901305122011351050965880
924121920184517701695162015451470139513201245117010951020945870795720
1024111600153514701405134012751210114510801015950885820755690625560
112410128012251170111510601005950895840785730675620565510455400
12249955920885850815780745710675640605570535500465430395
13248640620600580560540520500480460440420400380360340320
14247320310300290280270260250240230220210200190180170160
1524600000000000000000
16301647634553434341333923371335033293308328732663245322432033182316131403
17301542904103391537283540335331652978279026032415222820401853166514781290
18301438253668351033533195303828802723256524082250209319351778162014631305
19301333603233310529782850272325952468234022132085195818301703157514481320
20301228802768265525432430231822052093198018681755164315301418130511931080
213011240023032205210820101913181517181620152314251328123011331035938840
223010192018381755167315901508142513431260117810951013930848765683600
23309143313801328127512231170111810651013960908855803750698645593
24308960930900870840810780750720690660630600570540510480
25307480465450435420405390375360345330315300285270255240
2630600000000000000000
27401671446829651461995884556952544939462443093994367933643049273424192104
28401564356154587355915310502947484466418539043623334130602779249822161935
29401457385501526550294793455643204084384836113375313929032666243021941958
30401350404849465844664275408438933701351033193128293627452554236321711980
31401243204151398338143645347633083139297028012633246422952126195817891620
32401136003454330831613015286927232576243022842138199118451699155314061260
3340102880275626332509238522612138201418901766164315191395127111481024900
34409214920701991191318341755167615981519144013611283120411251046968889
354081440139513501305126012151170112510801035990945900855810765720
36407720698675653630608585563540518495473450428405383360
3740600000000000000000
BraydenMSB
Cell Formulas
RangeFormula
F2F2=IF(AND(D2="yes-coastal",OR(B2=15,B2=16)),"check",IF(AND(D2="yes-coastal",OR(B2=13,B2=14)),SUMPRODUCT((A5:A37=A2)*(B5:B37=B2)*(C4:S4=C2),C5:S37)*2,SUMPRODUCT((A5:A37=A2)*(B5:B37=B2)*(C4:S4=C2),C5:S37)))
I like this idea, but I would have to adjust an entire pricing form if I change to a singular data index. Where would be the best place within my original formula to insert your earlier suggestion with the namecheck option? I'm not sure where that argument best fits
 
Upvote 0
Keep that bit =IF(AND(D2="yes-coastal",OR(B2=15,B2=16)),"check",IF(AND(D2="yes-coastal",OR(B2=13,B2=14)), then here add your formulae followed by *2, then here put again your formulae followed by ))
Adjust the references to fit your model.
 
Upvote 0
Keep that bit =IF(AND(D2="yes-coastal",OR(B2=15,B2=16)),"check",IF(AND(D2="yes-coastal",OR(B2=13,B2=14)), then here add your formulae followed by *2, then here put again your formulae followed by ))
Adjust the references to fit your model.
Got it, thank you!
 
Upvote 0
Most welcome. Thanks for your feedback.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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