nested if function, please help!!!!

quillmaster

New Member
Joined
Feb 28, 2013
Messages
8
Hi,
i have some data of no of calls and i am trying to seggreage them based on the number of minutes spent on them, i am using nested if condition but it is giving me problems

can somebody help.
146=IF(AND(D1)<59,1,IF(AND((D1)>59,(D1)<119),2,IF(AND((D1)>119,(D1)<179),3,IF(AND((D1)>179,(D1)<240),4,5))))3
68
189
248
112

<tbody>
</tbody>
the above formula is giving me 3 in every coloum....can anybody correct this.

i want to categories the seconds on the left most coloum to be categorised into right most coloum of i minute call ( between 0-59 sec), 2 minute call (60 to 119 sec), 3 minute calls ( 120 to179 sec) etc.
 

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.
nope, it still gives me 3... i dont know why....

You're getting 3 for all of the lines or just the first? Both my solution and West Man's solution work on my machine.

Is your worksheet calculation set to automatic or manual?
 
Last edited:
Upvote 0
it was set to automatic but then i switched to manual but still it is implementing the answer of the first cell....
what i am doing is, since it is a large dataset, entering the formula in the first cell and then pressing ctrl+d after selecting the entire coloum.... i think it is more of a formatting issue..... can you please help me what to do here i am using excel 2013...
 
Upvote 0
When you select one of the copied cells, what does it say in the formula bar?
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,344
Members
448,956
Latest member
Adamsxl

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