lionelhill
Technical User
Two questions for which I'd be grateful for help:
(1) I have a set of measurements (e.g. 306.2) which I'd like to look up in a table of previous results, and report a corresponding text (305=A, 306.1=B, 308=C...). I'd like the nearest match rather than the largest that doesn't overshoot, or the smallest that does overshoot. Because the measurements are non-integer numbers, the chance of an exact match is very small.
Is there a way to do this? Neither Match nor Vlookup seems to offer "nearest fit".
At the moment I'm handling this by creating a new column containing, for "B", the average of A's value and B's (etc.), and using Vlookup on this column instead of the true values. This works, but seems a bit inelegant and it's hard to explain the logic to my clients.
(2) Is there a way to do a bar-chart with a numerical x-axis in Excel? I.e. my data points happened corresponding to conditions 1, 2, 5.3, 8, 10, and I'd like them plotted at those intervals on the x-axis, not evenly spaced.
Many thanks in advance for any suggestions!
(1) I have a set of measurements (e.g. 306.2) which I'd like to look up in a table of previous results, and report a corresponding text (305=A, 306.1=B, 308=C...). I'd like the nearest match rather than the largest that doesn't overshoot, or the smallest that does overshoot. Because the measurements are non-integer numbers, the chance of an exact match is very small.
Is there a way to do this? Neither Match nor Vlookup seems to offer "nearest fit".
At the moment I'm handling this by creating a new column containing, for "B", the average of A's value and B's (etc.), and using Vlookup on this column instead of the true values. This works, but seems a bit inelegant and it's hard to explain the logic to my clients.
(2) Is there a way to do a bar-chart with a numerical x-axis in Excel? I.e. my data points happened corresponding to conditions 1, 2, 5.3, 8, 10, and I'd like them plotted at those intervals on the x-axis, not evenly spaced.
Many thanks in advance for any suggestions!