Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
icc56 via OfficeKB.com
 
Posts: n/a
Default Using the IF function

Why does this forumla not work? =IF(J2=N14:N26,"A",IF(J2=N27:N40,"B",IF
(J2=N41:N52,"C")))
  #2   Report Post  
bj
 
Posts: n/a
Default

It needs ot be entered as an array formula, but you also need to tell it
whether you want the J2= to be an "Or" or an "and"
in other words do you want it to have to equal any of the cells or all of
the cells.
if or use
=IF(or(J2=N14:N26),"A",IF(or(J2=N27:N40),"B",IF(or (J2=N41:N52),"C")))
and enter as an array control-shift-enter
for and just repace the ors with ands


"icc56 via OfficeKB.com" wrote:

Why does this forumla not work? =IF(J2=N14:N26,"A",IF(J2=N27:N40,"B",IF
(J2=N41:N52,"C")))

  #3   Report Post  
icc56 via OfficeKB.com
 
Posts: n/a
Default

Thank you so much. It still doesn't work for me. I've even changed to =IF
(OR(J2=45-57),"A",IF(OR(J2=31-44),"B",IF(OR(J2=19-30),"C"))) and it still
doesn't work. I want the cell to read "A" if the J2 totals 45-57, etc.
  #4   Report Post  
bj
 
Posts: n/a
Default

If I am reading this correctly you want The cell to ="A" if J2 is between 45
and 57
try
=if(J257,"",if(J244,"A",if(J230,"B",if(J218,"C "))))
of
if(And(J2<=57,J2=45),"A",if(and(J2<=44,J2=31),"B ",if(and(J2<=30,J2=19),"C","")))

"icc56 via OfficeKB.com" wrote:

Thank you so much. It still doesn't work for me. I've even changed to =IF
(OR(J2=45-57),"A",IF(OR(J2=31-44),"B",IF(OR(J2=19-30),"C"))) and it still
doesn't work. I want the cell to read "A" if the J2 totals 45-57, etc.

  #5   Report Post  
icc56 via OfficeKB.com
 
Posts: n/a
Default

BJ - thank you! This one works! :)

--
Message posted via http://www.officekb.com


  #6   Report Post  
icc56 via OfficeKB.com
 
Posts: n/a
Default

You are a god!

--
Message posted via http://www.officekb.com
  #7   Report Post  
icc56 via OfficeKB.com
 
Posts: n/a
Default

Still need help on this one if anyone has any ideas.

--
Message posted via http://www.officekb.com
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"