Formula for spreadsheet help

Copper Contributor

Hi,

I would like to build a spreadsheet and have the spreadsheet enter a particular number in the cell next to a particular word. For example, each time a cell has  the word labor, the cell to the right would return 25, which would be the value of a cell. That way if the value in, say A1 changes to 27 then labor everywhere in the spreadsheet would change to 27.

It would be even better if the cell could return a calculated result:

Cell c1=labor cell d1=.13       cell e1 would return A1*d1  where A1 is always used each time labor comes up.  So the answer here would be 3.25. If the next line is c2=labor d2=.20 cell e2 would be 25*.20

 

I hope I'm making some sense. I played around with the IF function and the VLOOKUP and those seem to be close, but not quite it.

Thanks!

Kathy

2 Replies

@Kathy1485 Hi, I've tried the following formula, it seems can handle your problem.

 

IF(C1="labor", $A$1*d1, "")

 

I noticed you mentioned that you've tried "IF" around, but there's some problem still. I guess the problem you have might be related reference of A1. If we use absolute reference, it would always refer to A1 as you wish.

 

Please let me know if this works for you.

 

Best,

 

Sc

@Hare0319 

 

Thanks, I'll give it a try!