How to get the max value - excel

I am trying to get the max value:
Here, Catee has 3 entries and out of which I need to highlight the maximum value which is 2000
Ramox has 4 entries and need to highlight the max value i.e. 144
I tried with condition formatting but I've more than 1900 rows plus 112+ records as like Catee and Ramox and applying condition formatting individually is a cumbersome process.
Record Ace has 550 as the highest number but appeared thrice. In this case, I need highlight them all
If there a better way to highlight the same:
Thanks!

Make it easy on yourself. My advise:
Select C2:C22;
Add conditional formatting rule based on: =C2=MAXIFS(C$2:C$22,A$2:A$22,A2);
Now, select A2:C22;
Hit F5;
Select: 'Special' >> 'Blanks' >> 'OK';
Type =A2 and confirm with Ctrl+Enter.

Are you aware of the Subtotals feature of Excel?
First, I'd advise you to add the names, as so beautifully explained in JvdV's video.
As a result, you get something like this:
Start the SubTotals feature, using the Max function:
The first result looks as:
Clicking on 2 in the margin modifies this into:
Have fun :-)

Related

Excel percentage increase based on formula

I am trying to fill the sell price column in an Excel spreadsheet with the increased values in colors based on the round up columns value (1 to 50 green, 50 to 100 blue, 100 to 150 yellow, 150+ pink).
I've opted for the percentage table because some items can be sold for a lot more than what I have purchased them for, so that's just for my benefit. I am open to any other suggestions and I am new to this whole business thing.
I was using IF in my formula which would work great for using one percentage increase in the formula:
=IF($E27<50,ROUNDUP(I$27,-1))
If I try to enter a second argument like
=IF(OR($E28<50,ROUNDUP(I$28,-1)OR($E28>50,<100,ROUNDUP(J$28,-1))))
I will get an error.
I'm probably using the formulas wrong, I've tried "AND" and a couple other formulas, but I can't find anyone else trying to achieve the same or similar.
So something like this:
=IF($E28<50,ROUNDUP(I$28,-1),IF($E28>50,ROUNDUP(J$28,-1),"Error"))
But not sure what the <100 was for.
Although the problem is not completely clear, I understand that you want to add a formula with nested if statements.
I will recommend you to try nested ifs in parts.
=IF($E27<50,ROUNDUP(I$27,-1),"First if condition is false")
If everything is working as per the requirement then edit that text in the formula to add another if statement.
=IF($E27<50,ROUNDUP(I$27,-1),IF(OR(condition 1, condition 2,more conditions),"value if true","value if false"))
In the second argument provided by you, the arguments of the OR function has not been properly provided. Ensure that all the arguments of an OR function are conditions separated by a comma.
$E28<50 This is a condition so it's ok.
But other arguments are not making sense.
Also, using OR multiple times inside the first OR arguments is not clear.
It would be beneficial if you could provide the basic table and mention the requirement clearly.

Self updating calulated fields

This might sound pretty basic but I'm stuck and unsure of how to formulate my query in search engines.
You can see the simple table I have in the picture. These are ratios, so for example 475 units of Mazout are equivalent to 1 unit of Granules de bois, 725 units of propane, etc.
What I want is to be able to enter X amount in any of the Quantité équivalente row (single cell) and have all the others update to the proper ratio automatically.
So for example if I enter 825 units of propane, I want to know what the equivalent results would be in the other columns.
I hope that my problem is clear.
If you type something in a cell, you remove whatever formula is in it. The solution is to input the data elsewhere.
First thing you will need is a lookup table with the various ratios, something like:
You will then need two cells for your input. One with a dropdown list for the fuel type and the other for typing in the quantity:
Finally, in B2 of your table, use the following formula:
=IF(B1=$I2,$J2,$J2/INDEX($N2:$N6,MATCH($I2,$M2:$M6,0))*INDEX($N2:$N6,MATCH(B1,$M2:$M6,0)))
And populate the rest of the row.
Final result should look like this:

Single Line to Double-line Formatting in Excel

In my job I have to enter warranty information so that POs can be cut. Vendors are very particular with how this is entered and each one has their own format.
One of them requires data be entered:
SN:
MACHTYPE:
Further, the information for this is sent in a single composite number, something like:
10Y754235FUYJ9
Requiring the final input of data to be:
SN:10Y75423
MACHTYPE:UYJ9
The first 4 digits of the composite are the MACHTYPE and the final 8 are the Serial Number.
The impasse I've reached is I can't seem to get auto-fill to replicate the skipping of lines as I've formatted. It will jump a number of lines equal to however many I've selected.
Any ideas about getting it to replicate the first four Formatted Data? I've been throwing myself at this for a couple hours now.
Thanks in advance!
I think you're over complicating it by using two rows for the Formatted Data. I'd wrap the text (Home tab > Alignment section) for the cells in column F and use the following formula to insert a new line:
=CONCATENATE("SN:",B1,CHAR(10),"MATCHTYPE:",C1)
Then just leave the formatting like you had it by row...
Okay, let's focus on the title. When A1 is 10Y754235FUYJ9,
="SN:"&LEFT(A1,8)&CHAR(10)&"MATCHTYPE:"&RIGHT(A1,4)
will give you the output:
SN:10Y75423
MATCHTYPE:UYJ9
And don't forget to set the wrap text checked at Format Cells menu.

I'm trying to make custom formatting that highlights when a number is more than and less than a specific formula

I work for a brokerage and we profit in the margin. In order to keep these margins at the forefront of everyones mind we want to format it so that if the bid is over our 15% goal it highlights in order to make the broker aware he is outside of the target zone.
In the example below the rate we are charging is $1,000.00 and we want to find a provider for $850.00 or less in order to meet margin. At $851.00 and higher I have the amounts being highlighted, I managed this by putting =sum(A12*0.85) in F and put a conditional formatting into E for =E14>F14, I then hide F to make it look clean.
I am by no means an experienced Docs user so I'm hoping I'm missing an easy fix but my problems are:
That I need to manually enter a lot of this (thousand of lines, always need more), inserting new lines at the bottom of that E14:E23 string does not carry over the F function and causes even a blank cell to highlight orange since the F cell is blank.
I need to have this same process done for many loads, this is one load, the next one might be $2,000.00 and I don't want to manually have to do each one, a simple copy paste method is beyond my ability to figure out.
In column E for example.
Conditional Formatting > New Rule > Use a formula
=IF(AND(A1<>"",E1<>"",E1>=A1*0.85),1,0)

Excel Nested IF statement with various text conditions

I am creating IF statements in Excel to budget according to the discipline of engineers. I want:
IF(H5="CIVIL") then print for me value (I5*5000)
IF(H5="ARCHITECT") then print for me value (I5*3000)
IF(H5="ELECTRIC") then print for me value (I5*3000)
IF(H5="MECHANIC") then print for me value (I5*2000)
I am using a nested IF statement:
=IF(H5="CIVIL",I5,I5*5000,IF(H5="ARCHITECT",I5,I5*3000,IF(H5="ELECTRIC",I5,I5*3000,IF(H5="MECHANIC",I5,I5*2000))))
but I see the message "You've entered too many arguments for this function".
How can I use the formula without any problem?
Please try:
=IF(H5="CIVIL",5000,IF(OR(H5="ARCHITECT",H5="ELECTRIC"),3000,2000))*I5
There will be more professions with more values, so a "single formula" approach is second best. You should use a table with profession and value, and use VLOOKUP, then you can change values and add professions as you like without updating spaghetti formula code ... e.g.
A B
1 Civil 5000
2 Arch 3000
3 Elec 3000
4 Mech 2000
Specifying a profession in H5, you would use the following formula in I5:
=VLOOKUP(H5,A1:B4,2,FALSE)
Looking at your edit ... one more reason NOT to hide the unit cost in a formula, because in 2016 the rates might be different --> use a table!
You can always open your formula in a text editor and check it. I use line breaks to separate arguments. If you don't comment like I did you can even reimplement the now formatted formula. Saved me a lot of times.
Also, I've found your formula's hiatus:
=IF(
H5="CIVIL", 'test
I5, 'If True
I5*5000, 'If False
IF( 'WAT
H5="ARCHITECT",
I5,I5*3000,IF(H5="ELECTRIC",I5,I5*3000,IF(H5="MECHANIC",I5,I5*2000))))

Resources