Set cell value based on other cell's information

AlexB

I want A1 to set the tier value of 0-4, based on B1's value (in hours). For example, if B1 is "0", "1", or"2" (0-2), set A1 to 0, if B1 is "3" or "4", set A1 to 1, etc... Please help.

I have the following formula =IF(D2<3,"0",IF(D2>=3,"1",IF(D2<=4,"1",IF(D2>=5,"2"))))

But anything with the value of 5 or up, it keeps the value to "1"...

Thanks, aB

Pomul

your formula becomes true at ...if(d2>=3,"1");

5 >= 3 so it returns 1.

try this =IF(D2<3,"0",IF(D2>=5,"2","1"))

You may want to consider changing the first condition to D2<=2 so it exactly matches the description you gave.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Increase a cell's value based on other cell's value

From Dev

Locking cell based on value on other cell

From Dev

Locking cell based on value on other cell

From Dev

Clear contents of cell based on value in other cell

From Dev

How to set datagrid row's background based on variably value in cell

From Dev

Set value of a cell based on another cell's value in VBA Excel 2010

From Dev

How to change background color of cell based on other cell value by VBA

From Dev

how to make cell editable based on other cell value

From Dev

Autonumbering format based on value other cell

From Dev

how to set value in 2 cell if other cell contains 'something'

From Dev

Toggle cell value based on previous cell's value

From Dev

Set cell string based on numerical value of another cell

From Dev

Excel – Set cell values in a column based on another cell value in intervals

From Dev

set the cell a formula looks at, based on a value in another cell?

From Dev

HTML/JavaScript: Dynamically hide a set of td / tr based on other variable and cell value

From Java

Conditional formatting based on another cell's value

From Dev

Hide sheet(s) based on cell value

From Dev

Hide sheet(s) based on cell value

From Dev

Color Cell based on value

From Dev

Concatenate based on cell value

From Dev

Highlighting cell based on value

From Dev

Change value in a cell based on value in another cell

From Dev

Copy and paste row in new sheet with changes in cell value (month) based on other cell value

From Dev

Set cell value with VBA

From Dev

Set a string to a value in a cell?

From Dev

Google spreadsheet look up cell based on value of other

From Dev

Pandas assign value to cell based on values of other cells in row

From Dev

how to get cell value in other sheet based on condition?

From Dev

Excel - Return the value of a particular cell based on matches of other cells

Related Related

  1. 1

    Increase a cell's value based on other cell's value

  2. 2

    Locking cell based on value on other cell

  3. 3

    Locking cell based on value on other cell

  4. 4

    Clear contents of cell based on value in other cell

  5. 5

    How to set datagrid row's background based on variably value in cell

  6. 6

    Set value of a cell based on another cell's value in VBA Excel 2010

  7. 7

    How to change background color of cell based on other cell value by VBA

  8. 8

    how to make cell editable based on other cell value

  9. 9

    Autonumbering format based on value other cell

  10. 10

    how to set value in 2 cell if other cell contains 'something'

  11. 11

    Toggle cell value based on previous cell's value

  12. 12

    Set cell string based on numerical value of another cell

  13. 13

    Excel – Set cell values in a column based on another cell value in intervals

  14. 14

    set the cell a formula looks at, based on a value in another cell?

  15. 15

    HTML/JavaScript: Dynamically hide a set of td / tr based on other variable and cell value

  16. 16

    Conditional formatting based on another cell's value

  17. 17

    Hide sheet(s) based on cell value

  18. 18

    Hide sheet(s) based on cell value

  19. 19

    Color Cell based on value

  20. 20

    Concatenate based on cell value

  21. 21

    Highlighting cell based on value

  22. 22

    Change value in a cell based on value in another cell

  23. 23

    Copy and paste row in new sheet with changes in cell value (month) based on other cell value

  24. 24

    Set cell value with VBA

  25. 25

    Set a string to a value in a cell?

  26. 26

    Google spreadsheet look up cell based on value of other

  27. 27

    Pandas assign value to cell based on values of other cells in row

  28. 28

    how to get cell value in other sheet based on condition?

  29. 29

    Excel - Return the value of a particular cell based on matches of other cells

HotTag

Archive