There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
All Other Software
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > All Other Software >
Solved: Excel IF= question

Reply  
Thread Tools
ezpt's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Nov 2009
Experience: Beginner
02-Nov-2009, 02:45 PM #1
Solved: Excel IF= question
This is what I am trying to do..

IF A7=M then use formula 'A' if not use formula 'B'.

This is how I wrote it..

=IF(E17=M,"=4.95/(AG17)-4.5)*100","=4.95/(AI17)-4.5)*100")

It did not let me use the letter so I tried it with a 1.

=IF(E17=1,"=4.95/(AG17)-4.5)*100","=4.95/(AI17)-4.5)*100")

The function works, but it enters the code (=4.95/(AG17)-4.5)*100) not activating the formula.

Is there a way to default to the formulas (A, B) and also to use an M for the IF function?
etaf's Avatar
Computer Specs
Moderator with 34,394 posts.
 
Join Date: Oct 2003
Location: Surrey, UK
Experience: Intermediate
02-Nov-2009, 02:52 PM #2
IF A7=M then use formula 'A' if not use formula 'B'.

=if( a7="M", formulaA, formulab)
etaf's Avatar
Computer Specs
Moderator with 34,394 posts.
 
Join Date: Oct 2003
Location: Surrey, UK
Experience: Intermediate
02-Nov-2009, 02:53 PM #3
Try this

=IF(E17="M",4.95/(AG17)-4.5)*100,4.95/(AI17)-4.5)*100)

I havent check - will do now

The brackets are all wrong

So what do you want to calculate first in the formula

formualA
4.95/(AG17)-4.5)*100
so you can see you have a closed backet and no open

Formula B
4.95/(AI17)-4.5)*100
same here

I assume it should be at the beginning

(4.95/(AG17)-4.5)*100

and

(4.95/(AI17)-4.5)*100

so

=If(A17="M", (4.95/(AG17)-4.5)*100, (4.95/(AI17)-4.5)*100 )
should work


OR
depending on the calc you want to do first

=If(A17="M", 4.95/((AG17)-4.5)*100, 4.95/((AI17)-4.5)*100 )
__________________
Note: I have very limited time during weekdays to visit here, so there will be a delay in replying
UK timezone
Please let us know what the final solution was to any problem posted

Last edited by etaf; 02-Nov-2009 at 02:59 PM..
ezpt's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Nov 2009
Experience: Beginner
03-Nov-2009, 10:24 AM #4
That was great this has been kicking my butt for a couple days. It's great that there are great minds out there willing to help. I just started using the Excel program and have been using only trial and error. I will be watching this board and library trying to learn more.

Thanks again.
etaf's Avatar
Computer Specs
Moderator with 34,394 posts.
 
Join Date: Oct 2003
Location: Surrey, UK
Experience: Intermediate
03-Nov-2009, 11:45 AM #5
if thats all OK now - you can now mark as solved - button at top of your first post

Any more questions on other excel issue - just post a new post
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:50 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.