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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,216,060
Messages
6,128,549
Members
449,458
Latest member
gillmit

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