IF(AND Function Question/help

KasperSSI

New Member
Joined
Nov 28, 2019
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have my accounts in excel from 200000 to 499999 and i want to do an IF(AND function for cell A1 where i differentiate the output in Raw materials and services and so on.

The first step i can make work: =IF(AND(A1>200000,A1<300000);"Raw materials";"") This part works. But i want to do nested IF's so the same formula shows whether it is 200000-300000 (raw materials) or 300000-400000 (services) 400000 - 499999 (other services).

Is this possible?

Thank you in advance for your help :)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi @KasperSSI, welcome to the forum!

Try this

Book1
AB
1
2200000Raw materials
3300000services
4400000other services
Sheet
Cell Formulas
RangeFormula
B2:B4B2=IF(A2<300000,"Raw materials",IF(A2<400000,"services","other services"))


Or this
=LOOKUP(A2,{200000,300000,400000},{"Raw materiales","services","other services"})
 
Upvote 0
Thank you for the suggestion, i very much appreciate it. Made it work by using:
=IF(AND(E2>200000;E2<300000);"raw";IF(AND(E2>300000;E2<400000);"serv";IF(AND(E2>400000;E2<500000);"other services";"")))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,727
Members
449,116
Latest member
Aaagu

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