Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BadSector
 
Posts: n/a
Default Excel Formula Help

I am setting up a basic excel spreadsheet and really have got no experience
with excel. I want to do something real basic like if A2=laptop display $10
or if A2=desktop display $20 how do I do this?


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think that if the list of options is more than a just a few, a =vlookup()
function would work nicely.

It may seem a little complex to start, but once you use it, you'll find tons of
more reasons to use it.

Debra Dalgleish has some nice instructions at:
http://contextures.com/xlFunctions02.html

BadSector wrote:

I am setting up a basic excel spreadsheet and really have got no experience
with excel. I want to do something real basic like if A2=laptop display $10
or if A2=desktop display $20 how do I do this?


--

Dave Peterson
  #3   Report Post  
gls858
 
Posts: n/a
Default

BadSector wrote:
I am setting up a basic excel spreadsheet and really have got no experience
with excel. I want to do something real basic like if A2=laptop display $10
or if A2=desktop display $20 how do I do this?


If you explain what you're trying to do in more detail you will
get more detailed responses.

gls858
  #4   Report Post  
Rodney
 
Posts: n/a
Default

G'day BadSector,
I am only learning too, but I find it helps when answering.
I would put the formula in B2 as..........

=IF(AND(A5="Laptop Display"),10,IF(AND(A5="Desktop Display"),15,""))

Format the cells to Currency.

If I am incorrect, I am sure I'll be notified :)

HTH



| I am setting up a basic excel spreadsheet and really have got no experience
| with excel. I want to do something real basic like if A2=laptop display $10
| or if A2=desktop display $20 how do I do this?
|
|


  #5   Report Post  
Rodney
 
Posts: n/a
Default

Oops.
correction

=IF(AND(A2="Laptop Display"),10,IF(AND(A2="Desktop Display"),20,""))





  #6   Report Post  
Rodney
 
Posts: n/a
Default

Explanation:

The formula reads..
If a2="laptop display" give it a 10
If a2="desktop display" give it a 20
the AND's connect the formula query
if any of the queries returns a false reading eg:"Monitor Display"
then leave the cell blank (the two quotation marks at end.. "")

you can substitute the numbers to taste/requirements

HTH

=IF(AND(A2="Laptop Display"),10,IF(AND(A2="Desktop Display"),20,""))



  #7   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You don't need AND. It's not doing anything!

=IF(AND(A2="Laptop Display"),10,IF(AND(A2="Desktop Display"),20,""))


=IF(A2="Laptop Display",10,IF(A2="Desktop Display",20,""))

AND is used to check multiple conditions:

=IF(AND(A2="Laptop Display",B2="Desktop Display"), TRUE,FALSE)

Biff

"Rodney" wrote in message
...
Explanation:

The formula reads..
If a2="laptop display" give it a 10
If a2="desktop display" give it a 20
the AND's connect the formula query
if any of the queries returns a false reading eg:"Monitor Display"
then leave the cell blank (the two quotation marks at end.. "")

you can substitute the numbers to taste/requirements

HTH

=IF(AND(A2="Laptop Display"),10,IF(AND(A2="Desktop Display"),20,""))





  #8   Report Post  
Max
 
Posts: n/a
Default

Believe the OP's meaning of "display" is == return/show the value
So the lookup values would probably be just: Laptop, Desktop <g
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #9   Report Post  
Rodney
 
Posts: n/a
Default

You are my luminary Biff!
Thanks,
See, one does learn by attempting replies :)


| You don't need AND. It's not doing anything!
| =IF(AND(A2="Laptop Display"),10,IF(AND(A2="Desktop Display"),20,""))
| =IF(A2="Laptop Display",10,IF(A2="Desktop Display",20,""))
| AND is used to check multiple conditions:
| =IF(AND(A2="Laptop Display",B2="Desktop Display"), TRUE,FALSE)
| Biff



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
Formula in an Excel comment The Window Cleaner Excel Discussion (Misc queries) 0 March 10th 05 11:03 AM
Excel should have a simpler subtraction formula similar to "sum". Darius Excel Worksheet Functions 5 February 21st 05 11:14 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Need excel formula to display 28.50hrs in HRS & MINS? rbc Excel Worksheet Functions 4 January 6th 05 12:21 PM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 07:52 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"