![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi Guys...
I would like to compare two colums ("A" vs. "B")in order to tell if the items in the corresponding cells in column B are smaller than in B. (for example, I would like some way of knowing if B30 was smaller than A30, etc.) I know a formula exists...maybe there is a way to highlight all the instances where B is smaller than A? Or perhaps some other similar way to accomplish what I am explaining....any help is appreciated! |
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Hey there,
I believe the formula you'll need is: =if(b30<=a30,"Specify an alert message","") You could then conditionally format these cells to change colour or something if the argument returns true |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Of course this formula would only really be any good if it was numeric values you were comparing...
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
in C1 enter: =(A1 Select all of the cells of C, activate Format|Cells, choose Custom, and enter in the Type box: [=0]"No";[=1]"Yes" The above gives you the choice to =SUM(C:C) in order to know how many A-cells are smaller than B-cells. Alternatively, you can apply Conditional Formatting, e.g., to column A in order to color A-cells that are smaller than corresponding B-cells. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|