I need to find a way to highlight closes and farthest value to/from 0 in my excel table. I know easiest way to achieve it is by using conditional formatting, however I can not do it correctly even with help of tutorials. Based on this site:
https://www.extendoffice.com/documents/excel/4095-excel-highlight-closest-value.html
i used formula
=ABS(A2-$D$2)=MIN(ABS($A$2:$A$15-$D$2)) on my test data but it dosent work... What am I doing wrong?
I would add a helper column that is absolute value of difference. Then add another cell that's min of that column. Will make it easier to debug.
This issue was related to my system exclusively. Worked on other computer. Got new system and this problem never occurred again.
Related
Despite looking at a similar topic I have not been able to solve this yet. I want to create a vertical line that automatically updates with week number in my sheet (not chart). See picture.
Somehow, I can not solve it with conditional formatting. Can you help me with what/how to make the formatting or (preferably) using a macro.
I have illustrated how I want it to look using an inserted figure.
Hope someone can help.
The formatting takes me to here:
.
However, the layout/visual is not super good as it over writes what is already in there.
Conditional formatting is a good way to solve this though. Let's say my week numbers are on A1:ZZ1, then using below formula and applying it to the entire table could give you what you want?
=A$1=WEEKNUM(TODAY())
I'm admittedly new to using VLOOKUP in Excel, but I've run through a few tutorials on this and can't figure out what I'm doing wrong here. I'm attaching a sample of the table I'm working with, where I'm attempting to match a value (ZPOP) that is dependent on another value (ZIPCODE). The formula I'm using is
=VLOOKUP(A2,M:N,2,TRUE)
When I do the same as you, it looks like the formula is exact.
But, there's one thing in your Excel sheet: there is a warning at the beginning of your A-column. In order to reproduce this, I've replaced the value 59001 by '59001 (mind the single quote), and there the problem arises too.
Please check the warning of your A column and do some reformatting of that value, if possible.
so I have the following formula and I'm trying to create a stable formula where $o4$p74 is stapled and wont change. However, I need to constantly delete the p-column and then I do that, the vlookup changes from p to o and continues if I keep deleting the P-column. I'm trying so that it always returns the P-column value in which is always getting deleted, is there any ideas of how to go about this?
=VLOOKUP(B437,BHR8732A2!$O4:$P74,2,FALSE)*$S437
Another solution based on Allen's would be:
=VLOOKUP(B437,indirect("'BHR8732A2!'$O4:$P74"),2,FALSE)*$S437
Keeps it all nicely in a cell.
Have you thought about putting an =P1 before the column you are deleting? That would give you a ref error on the delete but I think it is easier to deal with that then messing with the vlookp each time.
Just found "=indirect("F2")" here
You could do that int the vlook up or using the suggestion above
You can use Offset to resize a reference to column O only, like this
=VLOOKUP(B437,OFFSET(BHR8732A2!$O4:$O74,,,,2),2,FALSE)*$S437
Note: this will make the formula Volitile
I have a system where I enter a code in one cell and in the next cell the corresponding text appears, using a lookup table.
Cell 1: I put "W1"
Cell 2: "Make sure that both your opening and ending are interesting and engaging." appears automatically.
Of course, I can't then edit the text. If I try, I find I'm editing the lookup formula.
What I'm really trying to do:
I'm a teacher, the codes are target codes and the text is the actual advice to the pupil. We have a standard system of targets, but we tend to customise the text in different ways according to the pupil.
Am I doing this the most sensible way? Is there a workaround?
Many thanks.
Perhaps it's not you're looking for, but try the following:
Put all grades in the column 1 (corresponds to your cell 1).
Apply Lookup formula and get default answers - this for the column 2.
Now copy entire column 2 and paste special it as values to the same place.
After the above you'll get default grades as TEXT ready for your editing.
Please respond in comments in case you have some more not obvious (from the initial request) limitations.
This requires, as far as I understand it, VBA. Thanks to those below for helping me figure that out.
The answer is here:
VBA Lookup and insert on cell change
Afternoon all :)
This is kind of a little difficult to explain but ill happily clarify where ever it is needed. Thank you for taking the time to read this post ^^ Here goes..
I am currently creating a spreadsheet that is been extracted from the database whereby I am tasked to concatenate data from 2 adjacent cells. I change the database on a frequent basis adding or removing data wherever necessary so the range of data is always different. To concatenate the two cells I use the following formula:
e.g: =IF(ISBLANK(B8&H8),"",B8&H8)
This formula works out great when im dealing with increasing amounts of data as I can simply drag the formula down as far as i want and i know that it will pick up the formula whenever I refresh the database without the need of seeing value errors when the formula ends up referring to a blank cell. The snag here (and my query as well) is if I have less data then before the formula within the last set of cells looks something like this:
e.g: =IF(ISBLANK(#REF!&#REF!),"",#REF!&#REF!)
I have dealt with #REF before in other spreadsheets whereby I simply used a ISERROR in the statement but I dont know if there is a possible way of including this within my formula. I need the ISBLANK there so I have more control and dont have to drag the formula as often.
If there is a better way around this or a way to amend the current formula Id appreciate the help :)
The only way you are going to get something like this:
=IF(ISBLANK(#REF!&#REF!),"",#REF!&#REF!)
in the formula bar is if you(or the system you are using) are somehow deleting the cells that were originally referenced. This should be avoidable. You can clear the cells referenced instead of deleting them completely - then you won't get this error - and your formulas will remain intact. Now you can certainly use the formulas provided in the comments to hide the errors - but the root of your problem seems to me to be that the errors are occuring in the first place. Good Luck.