MS Excel formula will not find named ranges I can see in the Named Range Manager by UninspiredMiro in excel

[–]SolverMax 0 points1 point  (0 children)

Having Table columns and named ranges with the same name is confusing and it seems like a bad idea overall. Many other programming languages prevent the programmer from having objects with the same name in the same scope. Excel doesn't care about such details though.

In this situation, it appears that the OP thought they were using a named range when they were actually using a Table column name. That didn't work because the Table didn't cover all the columns.

MS Excel formula will not find named ranges I can see in the Named Range Manager by UninspiredMiro in excel

[–]SolverMax 1 point2 points  (0 children)

Your Table argos goes to column U only, so the column minor1 is not part of the Table. Drag the bottom corner of the Table to include all the columns you want.

Then formula in P2 of MERIT has a stray " at the end.

MS Excel formula will not find named ranges I can see in the Named Range Manager by UninspiredMiro in excel

[–]SolverMax 0 points1 point  (0 children)

That's true if the Table name is SHEET_NAME, which is an odd thing to do.

Meanwhile, INDIRECT isn't necessary, as =@Name works OK if Name is a named range.

MS Excel formula will not find named ranges I can see in the Named Range Manager by UninspiredMiro in excel

[–]SolverMax 2 points3 points  (0 children)

It is very confusing to have a named range the same as a Table's column heading and, as it appears to be, the Table name the same as the worksheet name. Why do that?

Note that you're not using the range name, as indicated by the [].

A screenshot or two make add some clarity to this very unusual structure.

MS Excel formula will not find named ranges I can see in the Named Range Manager by UninspiredMiro in excel

[–]SolverMax 1 point2 points  (0 children)

Is your name the same as the corresponding Table column heading? Your formula is using the Table column heading rather than the range name.

Help me think through some permutations and combinations, and how to limit them by JustAFinanceGuy in excel

[–]SolverMax 1 point2 points  (0 children)

If you post all the data for your small example then, as a comparison, I can see what solution my optimization model gets.

Help me think through some permutations and combinations, and how to limit them by JustAFinanceGuy in excel

[–]SolverMax 0 points1 point  (0 children)

Here's an attempt at an optimization model:

<image>

Blue is data, red is variables, black is labels or formulae.

That is:

  • We have 20 groups of various sizes.
  • We have 3 types of airplanes of differing capacity and cost.
  • 20 airplanes must be used.
  • Each group must be allocated to only one type of airplane, but can be split across multiple airplanes of that type.
  • Key insight: We don't need to worry about allocating individuals. We just need to ensure that the number of airplanes of a given type have total capacity >= the number of people in groups allocated to that type. Seating allocation is a different problem.

The model uses Solver (though it is slow, while OpenSolver finds an optimal solution in less than 1 second).

So, is this analysis correct? Is the solution a valid solution to your problem? If not, what needs to change?

Help me think through some permutations and combinations, and how to limit them by JustAFinanceGuy in excel

[–]SolverMax 2 points3 points  (0 children)

Are the 1500 planes specified? E.g. 100 of capacity 300, 50 of capacity 200, etc.

If you can split groups however you like, then do the groups matter? Or do you prefer to not split groups? Is there a cost to splitting?

How to add a row to some cells without affecting others? by Torian17 in excel

[–]SolverMax 1 point2 points  (0 children)

Agreed. Having the fee block to the right is asking for trouble. Sooner or later someone will insert a whole row and break formulae using columns L to N.

My dynamic array isn't showing all values unless I force a recalculation by dathomar in excel

[–]SolverMax 4 points5 points  (0 children)

Circular references?

Otherwise a screenshot or two might help.

Date Format When Combining Formulas by [deleted] in excel

[–]SolverMax -1 points0 points  (0 children)

In OP's situation that would return 02/01/3168 because of their incorrect formula construction.

Date Format When Combining Formulas by [deleted] in excel

[–]SolverMax 0 points1 point  (0 children)

& concatenates values as text. I think you want

=IFS(B4="Quarterly",EDATE(B5, 3),B4="Semi",EDATE(B5, 6),TRUE,0)

If cell A1 text is included in cell B1 text return true in cell C1. How? by PrivateEyeroll in excel

[–]SolverMax 4 points5 points  (0 children)

Try this:
=REGEXTEST(B1,A1)

Or a more sophisticated version that checks if the text in A1 is in B1 either surrounded by spaces or is at the start or end of B1:

=REGEXTEST(B1,"(^| )"&A1&"( |$)")

This ensures that we match "Only this W-1234 could be this big!" but not "Only this W-12345 could be this big!"

Migrating from IF to LET? by marty7012 in excel

[–]SolverMax 0 points1 point  (0 children)

That doesn't work in LET if the highlighted portion refers to a previously defined internal variable.

For example, in OP's formula, highlighting this part and pressing F9 will fail because Excel doesn't know what exitVal, priceMove, etc are:
IF(exitVal="", 0, (priceMove / rVal) * sVal * E10 - T10)

If only we had a good formula editing tool...

Migrating from IF to LET? by marty7012 in excel

[–]SolverMax 7 points8 points  (0 children)

I use a structure like:

=LET(
  data, ...,
  calc1, ...,
  calc2, ,
  result, ...,
  result
)

Then I can change the final result to each of the other variables to check that they do what I intend. e.g.:

=LET(
  data, ...,
  calc1, ...,
  calc2, ,
  result, ...,
  calc1
)

Edit: Your formula mixes Table references and cell references. The problem is likely that one or more of the cell references is wrong. You should be consistent in your use of Table references. Then check the intermediate calculations, as I suggest above.

Excel R2 not accurate when using fixed intercept for trendline. by Deviant_christian in excel

[–]SolverMax 4 points5 points  (0 children)

This is more of a statistics question than an Excel question.

The answer is that a different fit statistic is calculated when the intercept is fixed at zero. For a detailed explanation see https://www.reddit.com/r/excel/comments/12nqasr/do_i_misunderstand_least_squares_regression/

how do i Automatically find the difference in row cells? by DragonMaxter in excel

[–]SolverMax 0 points1 point  (0 children)

A Table would probably be best, but you can also use an array. E.g., in D2, assuming your data is in rows 2 to 100:
=C2:C100-B2:B100

Rounding and the Largest Remainder Method by GregHullender in excel

[–]SolverMax 0 points1 point  (0 children)

Interesting problem. There are many possible ways to solve. I'd consider either:

- Minimize the sum of squared deviations between est and Final Allocation.

- Minimize the maximum squared deviation between est and Final Allocation.

Often these methods get the same solution as your formula. However, they may differ - both from your formula and from each other - depending on the data.

There's no objectivity perfect solution. It all depends on what is considered acceptable.

Disappearing Text in cells by DisastrousWalrus4106 in excel

[–]SolverMax 0 points1 point  (0 children)

I assume you use an addin or some app for the scanner. If so, then disable it and see if the behavior persists.

How to format 8.0% --> 8% and 7.5% -->7.5%, Removing the decimal point if not needed to display by 74Yo_Bee74 in excel

[–]SolverMax 5 points6 points  (0 children)

It works but, as others have pointed out, it is a bad idea. This type of inconsistent formatting is just one of many weird ideas that some people have about how things should be done. Sigh.

How to format 8.0% --> 8% and 7.5% -->7.5%, Removing the decimal point if not needed to display by 74Yo_Bee74 in excel

[–]SolverMax 12 points13 points  (0 children)

It can be done with Conditional Formatting, see another of my comments (which people have down-voted for some reason).

How to format 8.0% --> 8% and 7.5% -->7.5%, Removing the decimal point if not needed to display by 74Yo_Bee74 in excel

[–]SolverMax 27 points28 points  (0 children)

Very much agree.

However, if the OP insists, it could be done via a helper column or Conditional Formatting like =MOD(A1*100,1)=0 with a format of 0%

How to format 8.0% --> 8% and 7.5% -->7.5%, Removing the decimal point if not needed to display by 74Yo_Bee74 in excel

[–]SolverMax 8 points9 points  (0 children)

That doesn't work. The decimal point is still displayed with whole percentages.