Conditional Values

jdunkel

New Member
Joined
Mar 20, 2007
Messages
8
I am trying to write a conditional formula. There are 4 columns. Column A will reflects if type product has been selected on another tab. An X is put in the cell based on input from the other tab. Column C is a description of the product. Column B is a value based on the description (1, 2, 3, 4, etc). Column D is where I want to capture the value that corresponds with Column A and B in Column D. So if there is no "X" in column A row 1 then there would be no value from column C put in column D. If row 3 had an X then I want the value in column B (3) to be put in column D. I tried IF Fomula =IF(A78=X,"1",IF(A78=0," "). This would not work I got an error message. I tried VLookup and got more confused. How can create this formula.
A B C D
_ 1 term _
_ 2 UL _
x 3 SUL 3
_ 4 WL _
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
sorry. Didn't read carefully enough. The content of column B is missing so far.
Please try this:

=IF(A78="X",B78,"")
 
Upvote 0
Thank you. I have saved my brain. =IF(A1="X",B2," ") worked great. I have one more favor to ask. I need to extrapolate it one more level.

I want a formula similar to the last last scenario and want to use the lesser of the total in the results column. But only if there is a second person. So in the example below I want to have the final result pick the value (from column B or D, rows 1 through 4) that is smaller when comparing the results of the last formula and put it in the appropriate column (F). If is not on a row by row basis, it is based on the results of the 4 rows. I can live with just a total filed and not worry about if it lines up horizontally. The lesser number is only used when there is a 2nd person. I can use another field (outside of the fields below to determine if there is a 2nd person).

1st person 2nd person
A B C D E F

_ 1 X 1 Male age 74 or less/ Female age 77 or less 1
X 2 _ 2 Male age 75 - 78/ Female age 78 - 81 _
_ 3 _ 3 Male age 79 - 83/ Female age 82 - 86 _
_ 4 _ 4 Male age 84 +/ Female age 87 + _
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top