max(if(range_criteria = criteria, value_criteria) ignoring criteria in the search

LlebKcir

Board Regular
Joined
Oct 8, 2018
Messages
219
to test, I simplified the formula to focus on 1 network with 4 sub-networks. the expected output is 4 different MAX values, one for each sub-network.

Code:
=MAX(IF(tOrlando[City/Network] = [Underground Network Name], tOrlando[Group]))

This is run within the tNetworkname table, so [Underground Network Name] Excel is removing the tNetworkName from that portion of the code. I find that irritating, but thats what Excel does.

In column [Underground Network Name] and in column tOrlando[City/Network] there are 4 sub-networks: Orlando - North, Orlando - South, Orlando - West, Orlando - East.

Only Orlando - North is reporting a value, but it is the wrong value. It is the Max for all sub-networks in the tOrlando[Group] column thus the Max(If is ignoring the criteria of [Underground Network Name] for the search.

edit to add: Current output is Orlando - North (wrong value), all others have a 0 as their output. All outputs are drastically off from the correct value.

1. Why is it ignoring the criteria value
2. How do I fix this?
 
See image, I am using indirect, still getting zero as a result.
 

Attachments

  • max.code.fail.001.PNG
    max.code.fail.001.PNG
    8.9 KB · Views: 4
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
how to enter unique formula for each row in the table column? I have basically given up on Excel performing as expected when provided correct data so I will hard code each row with the correct tNetwork name, but when I change row 2, all rows below are changed to that value, same happens on row 3, etc...

How to stop this insanity?
 
Upvote 0
The solution I went with, not the best I am sure, was to generate the formulas (=Concat(...)) for all of the networks to generate tNetwork[City/Network] and tNetwork[Group], copy paste data into the table. Then 1 cell at a time, click inside the formula bar, shft+ctrl+return to turn that cell into an array formula. Poof correct values from each network.

Horrid work-around, but hey until someone can help answer why the codes I posted failed, this is best I can offer to others who might have a similar situation down the road.
 
Upvote 0
INDIRECT doesn't appear anywhere in the formulas you have posted.
 
Upvote 0
ahh, DUH, i read your first comment on that to be the [@[column_name]], not the command INDIRECT. Ok, feels like a fool :D
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,649
Members
449,462
Latest member
Chislobog

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