Error Checking in Excel - excel

I've got a workbook, that i use for fleet allocations, but i'm not sure how to do error checking in excel, and was wondering if anyone could point me in the right direction. When i allocate the vehicles to a duty, it uses vlookup to bring the driver name into the sheet. but what im unsure of how to do is, i have 54 duties, and it would be easy to miss one, so is there a way i can make it show me which duties are left to allocate ? please see screenshot...
Excel Worksheet Screenshot

For a layout as shown:
Select ColumnA, clear any existing CF from it and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(A1<>"",COUNTIF(C:E,A1)=0)
Format..., select formatting of choice (I chose the same fill as for the headers) OK, OK.

Well, had a look at your sheet... But I put this together as it is simple and you may be able to include it where you can...
Tha match() function looks for the duty in cell A2 and if it finds it in the list in column I then it returns its position number. If not found the iferror() returns "Not Allocated"...
The formula in cell B2 is:
IFERROR(MATCH(A2,J$2:J$10,0),"Not Allocated")

Related

Excel Conditional Format by Formula containing Cell(Address) in more than one cell

I have a list of cell addresses (B1:B100) in one sheet, which refer to a range (A1:Z26, for example) on another sheet.
I have been trying to link these through conditional formatting (say, to light up red). By formula, I can have the following work...
=cell("address",a1)=B1 ; this makes the cell in the range refered to in B1 light up red.
But when I try to apply this to the whole list, as in =cell("address",a1)=B1:B100 it does not work...
Can anybody help me find a way forward here?
the issue illustrated
Slightly modifying your original formula, you could try:
=MATCH(CELL("address",A1),Sheet2!$B:$B,0)
I suggest you select A1:Z26, clear any existing CF from it, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=MATCH(ADDRESS(ROW(),COLUMN(),4),another!$B$1:$B$100,0)
Format..., select red fill, OK, OK.
References in the B column should be relative format.

Is changing the color of a cell based on nested conditionals possible?

I have been trying to change the color of certain cells on my WS that fall outside of an acceptable range. The statement I've been trying to use is,
IF(OR('cell'>1.3,'cell'<2.5),'turn red','do nothing')
In english, "If a cell is less than 1.3 or greater than 2.5 turn red, else do nothing." I cannot find a resource that guides me to how I can get the cells to change colors. I also have been unsuccessful in creating a statement in the Conditional Formatting tab that satisfies my goal. I feel this should be simple, but for some reason cannot figure it out. Does anyone know if this is possible, and if so how to do it?
EDIT: Also, I have different ranges based on another cell on the spreadsheet. I need this also taken into consideration
Select the columns that you want to format
Click Conditional format --> new rule
Select "Use a formula to determine which cells to format"
In the formula bar enter the formula =AND(A1>1.3,A1<2.5)
Choose the fill color as red and press OK
am confused with your formula and your english version. If its the other way, then use the formula =OR(A1<1.3,A1>2.5)

Excel conditional formating - conditional on sum of all previous cells and total sum

I have a question with regards to conditional formatting which I simply can't seem to solve.
The aim is to format the background color for the left-most cells that are blank up until a cell contains a value - and after this there should be no more formatting in this row. You can see an image of the result I'm hoping for beneath:
So far I've managed to create the conditional formatting of the blank rows, but sadly haven't managed to create the "single-cell" formatting (in yellow) conditional of the sum of all the first cells being = 0.
I've created a formula which actually succeeds in calculating the sum of the previous cells, but this formula includes INDIRECT() which it seems that conditional formatting doesn't allow. At least I'm getting an error starting with the follow (translating the error from Danish to English might not be intuitive):
You cannot use reference operators such as.....
The formula I'm trying is the following:
=AND(SUM(A2:INDIRECT(IF(COLUMN(A2)>=27;CHAR((64-26)+COLUMN(A2))&CHAR((64-26)+COLUMN(A2))&ROW(A2);CHAR((64)+COLUMN(A2))&ROW(A2))))>0;$K2>0)
Where $K2 is the sum of the row.
Is there a way to SUM a range of cells by doing something similar to this:
=SUM(B2:CHAR((64)+COLUMN())&ROW();"")) to dynamically SUM the range from B2 to the current cell? The problem in this case is whether the part CHAR((64)+COLUMN())&ROW();"") can be converted into a legible cell such as B4 to make it work inside the =SUM() formula?
Sadly the =ADDRESS() formula cannot be used (as far as I know) as this will trigger the same error in conditional formatting as well.
For now I would like this to work with the regular Excel conditional formatting, but if anyone have a simple VBA this would also have interest - however, I would by far prefer the regular solution.
The question:
Is there a way to create a formula that doesn't trigger this error - maybe by refrasing the formula or doing something completely else?
It seems to me that this could be handled with a much simpler CFR formula like,
=and(not(sum($a2:a2)), $k2)
Am I missing something?

conditional formatting entire row if cell contains text

I have an excel sheet where I'm trying to use conditional formatting but it doesn't seem to work as I would like it to.
It seems as though any formula won't work as I don't want the cell to match TBC, but contain it.
In short, I am looking for this:
If D2 Contains "TBC" then highlight the whole row
I've tried around 10 suggestions through Google and also Stack Overflow but it seems as thou
Note: Each cell will have different values, i.e. D2 has "1 screenshot TBC" and D3 has "5 screenshots TBC". As they will all have different values but all contain the abbreviation "TBC" I am trying to search for that word.
Any help or advice that could be offered will be greatly appreciated.
Thank you in advance for your time! :)
Amandip
Select your entire sheet and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=FIND("TBC",$D1)
Format..., select colour Fill (highlight) of your choice, OK, OK.
Change FIND to SEARCH if you want this case insensitive.
This will trigger for the likes of ATBCX.

Copying conditional formatting with VLOOKUP across columns

I am formatting cell D25 using the following conditional formatting formula:
=(VLOOKUP($C25;$C$6:$L$18;2)+D25)>32
When applying the formula to the adjacent column I get formula updates to
=(VLOOKUP($C25;$C$6:$L$18;**2**)+E25)>32
Using the Copy and Paste Format function works mostly i.e. references in the formula are updated as I would expect.
The only (essential) thing that doesn't update is the INDEX value in the VLOOKUP formula. I would expect this value to increase by 1 when copying the format to the next column - it doesn't.
Is there any way to go around this issue with VLOOKUP? Is there a better suited formula to achieve the same result?
Any help will be greatly appreciated!!
This value does not increase automatically, and it is good. This formula was designed to be used on Tables, so consistency is a point here.
For conditional formatting, you may want to use $ to lock some references. For example, let we have the simple sheet as below:
First, select the range in the CORRECT order. This is important. the first cell you select will be reference for offsets of the conditional formatting. For this example, let's do it like this:
Now, let's go for the conditional formatting itself! Conditional Formatting > New Rule... > Use a formula to determine which cells to format. And let's put this formula:
=if($A1<=2;TRUE;FALSE)
Click OK and...
There we go! We just formatted the lines in witch An is equal or less than 2! Please note that we only had to lock the COLUMN of the reference. So, logically, to format the columns we would have locked the ROW.
Hope it helps!
EDIT:
If you REALLY want to use VLOOKUP, which I DO NOT recommend, you can just use the formula:
=(VLOOKUP($C25;$C$6:D$18;COLUMNS($C$6:D$18))+E25)>32
To change the index dinamically.

Resources