1b.app
Link copied -

Drop-down lists

Help the teapot, please ????! In the drop-down list, for example, there are several categories with several operations each. Each of them has its own numerical value. I need to make it so that when I select an operation, its value is added to the adjacent cell. I just need a hint of a function that will help me
Original question is available on version: ua

Answers:

To implement this functionality, you can use a combination of a drop-down list and formulas in Excel or Google Sheets. Here's how to do it:
1. Create a table with categories and values:
In a new worksheet or data range, create a table that contains the operations and their corresponding numeric values. For example:
| Operation | Value |
|----------------|-----------|
| Operation 1 | 10 |
| Operation 2 | 20 |
| Operation 3 | 30 |
2. Configure the drop-down list:
- Select the cell where the drop-down list will be placed.
- In Excel: go to the Data tab → Data Validation → select List. In the "Source" field, specify the range where the operation names are located.
- In Google Sheets: use Data → Data Validation → List from Range and select the appropriate range.
3. Use the formula to display the value:
In the adjacent cell where you want to display the numeric value, use the `VLOOKUP` or `XLOOKUP` formula (depending on your version of Excel).
For example, if the drop-down list is located in cell `A1` and the table of operations and values ​​is in the range `E1:F4`:
```
=VLOOKUP(A1, E1:F4, 2, FALSE)
```
In Google Sheets, the formula will be the same.
- `A1` is a cell with a drop-down list.
- `E1:F4` is the table range, where `E` is the operations column and `F` is the values ​​column.
- `2` — the number of the column from which you want to take the value (in this case, "Value").
- `FALSE` is an exact match.
4. Check the result:
- When you select an operation from the drop-down list, the corresponding numerical value will automatically appear in the adjacent cell.
If you need more automation (e.g., dynamically changing lists), you can consider using Google Apps Script or Excel macros.
27.01.2025, понедельник, 20:30
«Один юрист із портфелем у руках награбує більше, ніж банда автоматників» Original comment available on version: ua


You are great! Thank you!
28.01.2025, вторник, 21:00
Original comment available on version: ua


Yana wrote:
You are great! Thank you!


Chyzhyk Oleksandr Serhiyovych
OneBox production wrote:
To implement this functionality, you can use a combination of a drop-down list and formulas in Excel or Google Sheets. Here's how to do it:
1. Create a table with categories and values:
In a new worksheet or data range, create a table that contains the operations and their corresponding numeric values. For example:
| Operation | Value |
|----------------|-----------|
| Operation 1 | 10 |
| Operation 2 | 20 |
| Operation 3 | 30 |
2. Configure the drop-down list:
- Select the cell where the drop-down list will be placed.
- In Excel: go to the Data tab → Data Validation → select List. In the "Source" field, specify the range where the operation names are located.
- In Google Sheets: use Data → Data Validation → List from Range and select the appropriate range.
3. Use the formula to display the value:
In the adjacent cell where you want to display the numeric value, use the `VLOOKUP` or `XLOOKUP` formula (depending on your version of Excel).
For example, if the drop-down list is located in cell `A1` and the table of operations and values ​​is in the range `E1:F4`:
```
=VLOOKUP(A1, E1:F4, 2, FALSE)
```
In Google Sheets, the formula will be the same.
- `A1` is a cell with a drop-down list.
- `E1:F4` is the table range, where `E` is the operations column and `F` is the values ​​column.
- `2` — the number of the column from which you want to take the value (in this case, "Value").
- `FALSE` is an exact match.
4. Check the result:
- When you select an operation from the drop-down list, the corresponding numerical value will automatically appear in the adjacent cell.
If you need more automation (e.g., dynamically changing lists), you can consider using Google Apps Script or Excel macros.
28.01.2025, вторник, 21:02
Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment