I was able to figure out the code for Less than 40K and Grea

I was able to figure out the code for \"Less than $40K\" and \"Greater than $100K,\" but I am having trouble with the between salary ranges. I did figure out using the \">\" and \"<\" for it though, but still not helping.

Person Gender Children Salary Opinion $63,017Strongly agree Middle-aged Middle-aged Middle-aged Young Middle-aged Middle-aged Middle-aged Middle-aged Middle-aged Middle-aged Texas Virginia California California Texas California 3 $100,302 Strongly disagree 0$144,043Strongly agree 0 0 $36,025 S97,543 $69,222 $81,799 Neutral Disagree Disagree 1 gan 1 $101,894 0 Texas Virginia Illinois Arizona Arizona Minnesota Texas Texas $83,843Strongly disagree $87,457 9 Agree Disagree Disagree 0 $48,966 $88,855 Middle-aged Middle-aged 1$115,138 Strongly agree S67,748 $47,172 $39,086 Neutral Young Middle-aged Middle-aged Elderly Disagree Disagree Neutral Disagree 0 0$126,983 Texas California Florida Illinois $66,001 S67,723 $53,335Strongly disagree $67,683 $45,483 $64,364 Young Elderly Neutral Disagree 0 2$102,315 2$93,370 2$148,075 0 Texas Middle-aged Middle-aged Middle-aged Middle-aged Neutral Strongly agree Disagree Michigan Arizona S97,857 $62,929Strongly agree $37,963Strongly disagree $76,476Strongly agree $81,674Strongly disagree S49,505 Strongly disagree Illinois California Young Middle-aged Middle-aged Young Young Texas California Arizona 3$49,723 0 Strongly disagree $81,981 S66,636 Elderly gree

Solution

For \"between\" salary ranges use \">=\" and \"<=\" together. Also in excel use the \"if\", \"and\" functions together.

The syntax for \"between $40k and $70k\" would be: IF(AND(F2>=40,000,F2<=70,000),\"Between $40k and $70k\")

In the above syntax F2 represents the cell of the excel in which the salary data has been fed.

For instance if in cell F2 in your excel sheet if you feed salary amount as $56,000 then the cell will use the function:

IF(AND(F2>=40,000,F2<=70,000),\"Between $40k and $70k\")

The cell will be showing a categorical value of \"between $40k and $70k\".

I was able to figure out the code for \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site