Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
detlghtpd
 
Posts: n/a
Default i need halp with a formula

i am trying to make a formula that says "if text in cell A1 is "apple" then
add number in cell A3 to cell A2"

If Text in cell A1 is Orange then add number in cell A3 to Cell A2
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

That looks like the same action to me.

Where does the result go? If you want it in A2, you need code.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"detlghtpd" wrote in message
...
i am trying to make a formula that says "if text in cell A1 is "apple"

then
add number in cell A3 to cell A2"

If Text in cell A1 is Orange then add number in cell A3 to Cell A2



  #3   Report Post  
Dave O
 
Posts: n/a
Default

Your post seems to conflict with itself: you've said you want to add a3
+ a2 if a1 is both "apple" and "orange".

Here's a starting point:
=if(a1="apple",a3+a2,"a1 is not apple")

You can substitute another result, perhaps 0, for "a1 is not apple".

  #4   Report Post  
detlghtpd
 
Posts: n/a
Default

sorry it was not clear i just started trying to learn excel. what i want is
to take a long list of text items in column (A) that consist of only five
differant items but in random order grapes, bannanas, apples, ect. In column
(B) I want to list this weeks price for each. The price changes weekly so in
column (C) I want to list only the five differant fruits. and in column (D) i
want to list this weeks price for each fruit. what i need is a formula that
matches this weeks price (D) to a specific fruit in (C) and then changes the
Price in B to match its fuit listed in (A)

A column B column C column D column
orange orange 1.50 i
want the price
grape grape 2.00 for
each fruit to be
grape apple 3.00
entered in the (B)column
apple bannana .75
orange
bannana
apple
grape


"Dave O" wrote:

Your post seems to conflict with itself: you've said you want to add a3
+ a2 if a1 is both "apple" and "orange".

Here's a starting point:
=if(a1="apple",a3+a2,"a1 is not apple")

You can substitute another result, perhaps 0, for "a1 is not apple".


  #5   Report Post  
detlghtpd
 
Posts: n/a
Default

A column B column C column D column
orange orange 1.50 grape
grape 2.00 grape
apple 3.00
apple bannana .75
orange
bannana
apple
grape

i want the price for each fruit to be entered in the (B)column



"detlghtpd" wrote:

sorry it was not clear i just started trying to learn excel. what i want is
to take a long list of text items in column (A) that consist of only five
differant items but in random order grapes, bannanas, apples, ect. In column
(B) I want to list this weeks price for each. The price changes weekly so in
column (C) I want to list only the five differant fruits. and in column (D) i
want to list this weeks price for each fruit. what i need is a formula that
matches this weeks price (D) to a specific fruit in (C) and then changes the
Price in B to match its fuit listed in (A)

A column B column C column D column
orange orange 1.50 i
want the price
grape grape 2.00 for
each fruit to be
grape apple 3.00
entered in the (B)column
apple bannana .75
orange
bannana
apple
grape


"Dave O" wrote:

Your post seems to conflict with itself: you've said you want to add a3
+ a2 if a1 is both "apple" and "orange".

Here's a starting point:
=if(a1="apple",a3+a2,"a1 is not apple")

You can substitute another result, perhaps 0, for "a1 is not apple".


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
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 04:01 PM.

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

About Us

"It's about Microsoft Excel"