简体   繁体   中英

Function in Excel. If Value in Column A = X then Value in Column B should be Y

I have a Column "Estimated Effort in Hours" and a Column "IT4YOU T-Shirt". What I want to do now is to create function: If the value in "Estimated Effort in Hours" is in Range 0 - 3 than the value in "IT4YOU T-Shirt" should be X. If the value If the value in "Estimated Effort in Hours" is in Range 3 - 10 then the value should be Y...and so on.

I tried to create this function but it does not work:

=WAHL(VERGLEICH([@[Estimated Effort in Hours]];{0;0,1;16,1;40,1;80,1;160,1};1);"-";"XS | <= 2 PD";"S | 3 - 5 PD";"M | 6 - 10 PD";"L | 11 - 20 PD")

Can you help me?

If you have Excel-365 then try below formula.

=XLOOKUP(A2,{0,4},{"X","Y"},"",-1)

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM