Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 01-29-2009, 04:25 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 5
OS: xp


An IF here, a ROUND there....

Okay, so this is what I'm trying to do.

I'm tryin to have put in multiple IF functions into one cell. It will check the value of another cell, and according to its rounded value (to the nearest .05) , it will give a preditermined value.

Ex.

IF(ROUND B4 1.05, F4=53)
IF(ROUND B4 1.1, F4=51)
IF(ROUND B4 1.15, F4=49)

and so on...

How can I put this into on cell? I've got 15 of these IF statements to put in in total.

-NPC
Vake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-29-2009, 06:46 PM   #2 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: An IF here, a ROUND there....

You can write your individual equations one in each line WITHOUT the equals sign.

Then combine them using the Concatenate formula.

Next copy the contents of this cell to Notepad.

Then copy the formula from notepad to the cell content bar. Do this by selecting the target cell, clicking the box next to the "fx" below the toolbar, and using the paste command.

Based on your example, the formula development spreadsheet would look like the following:

IF(ROUND(B4,2)=1.05,53,
IF(ROUND(B4,1)=1.1,51,
IF(ROUND(B4,2)=1.15,49)))

=CONCATENATE("=",F5,F6,F7)

Note, the CONCATENATE function must have the equal sign in quotes and you can't use the F5:F7 shortcut that works for the SUM function.

You will also need to add one ")" at the end of the formula for each nested IF. This can be done by including them with the last formula or by including them in the CONCATENATE function. =CONCATENATE("=",F5,F6,F7,"))))")
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-30-2009, 11:53 AM   #3 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 5
OS: xp


Re: An IF here, a ROUND there....

Thank you for the help mate.

Works like a charm now
Vake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-30-2009, 10:42 PM   #4 (permalink)
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 563
OS: Vista


Re: An IF here, a ROUND there....

Hi Vake,

You have a problem with your logic, in that both ROUND(B4,2)=1.05 and ROUND(B4,1)=1.1 can be true at the same time.

Assuming you really want to base your output on the input rounded to the nearest 0.05 and that your numers only fall in the range >=1.025 to <1.175, you could use a formula in F4 coded as:
=51+(ROUND(B4*2,1)/2=1.05)*2-(ROUND(B4*2,1)/2=1.15)*2
Note the absence of IF tests! I'll leave it to you to decipher the formula's workings.
__________________
Cheers
macropod
(MS MVP -Word)

Last edited by macropod; 01-30-2009 at 10:49 PM.
macropod is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-01-2009, 08:38 AM   #5 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: An IF here, a ROUND there....

Good catch, macropod. I haven't tried your formula, but your post did remind me that in order to ROUND by skip-counts (2's, 5's etc) you may have to modify the number, round the result, then reverse the modification.

I'm not up to working the specifics out today. (neck pain due to the pinched cord)
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-01-2009, 04:20 PM   #6 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 5
OS: xp


Re: An IF here, a ROUND there....

Thank you for the added thought mate, and I see what you mean.


I'm not sure how to increment that into my table though, and make it work as a variable for a different value each time.
Vake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-02-2009, 05:38 AM   #7 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: An IF here, a ROUND there....

Basically it breaks down as follows:
A1 contains 1.06
A2 contains = A3*2 = 2.12
A3 contains = ROUND(A2*2,1) = 2.1
A4 contains = A3/2 = 1.05

Here’s the table I have so far:
CountBy, Use, RoundTo
0.05, 2, 1
0.5, 2, 0
5, 2, -1
0.02, 5, 1
0.2, 5, 0
2, 5, -1

I’m having some problems counting by other numbers, though.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-03-2009, 12:09 AM   #8 (permalink)
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 563
OS: Vista


Re: An IF here, a ROUND there....

Hi Vake,

Since you've got 15 number ranges to work with, you can probably use a formula in F4 coded as:
=X+ROUND((Y-B4)*2,1)*20
where X is the output number for the 8th item in the series and Y is the corresponding input number for an exact match. For example:
=45+ROUND((1.25-B4)*2,1)*20
With the right I/O values for the 8th item in the series, you'd get the correct output for any of the 15 possible ranges.
__________________
Cheers
macropod
(MS MVP -Word)
macropod is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




All times are GMT -7. The time now is 11:31 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85