[EXCEL] Apply a formula to a column

Solved
Antoine -  
karlitodu41 Posted messages 484 Registration date   Status Membre Last intervention   -
Hello,

My question might seem silly, but I'm new to the wonderful world of Excel formulas.

Here’s my problem: I want all the cells in one column to acquire a value based on the cell in the previous column. The issue is that if the cell in the previous column is empty, I don't want it to display a "#N/A".

Basically, I want to avoid using fill handle.

To be more specific, only certain data can be entered in my column E (each cell presents a dropdown menu). All the options in this menu are located in a matrix, and in the column to the right of the matrix, another value is associated with them.
I would like my column F to automatically provide the associated value as soon as I choose a value in E. And if the cells in E are empty, the cells in F should not return a "#N/A".
The formula used is a VLOOKUP, which works well with fill handle, but my goal is for the user to only have to select options and enter values, nothing more.

Thank you

Antoine
Configuration: Windows XP Internet Explorer 6.0

7 réponses

Vaucluse Posted messages 27336 Registration date   Status Contributeur Last intervention   6 453
 
Just in case, to avoid copying across all lines (it's long):
Select the column
Type the formula corresponding to the first line
Close with ctrl+ enter
This also applies to entering a value in consecutive or scattered cells after a collective selection.
25
karlitodu41 Posted messages 484 Registration date   Status Membre Last intervention   144
 
Euh, je ne vois pas comment vous faites ça, ça m'intéresse.
0