E90Post
 


Studio RSR
 
BMW 3-Series (E90 E92) Forum > BIMMERPOST Universal Forums > Off-Topic Discussions Board > Advanced Excel Users...



Reply
 
Thread Tools Search this Thread
      09-28-2011, 10:29 PM   #1
hl0m4n
Major General
hl0m4n's Avatar
United_States
2159
Rep
5,623
Posts

Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

Question Advanced Excel Users...

how do i add a function to items from a drop down list?

i want the value in b4 to be added/subtracted to the value in b1 from the drop down list.

help much appreciated, thanks guys.
Attached Images
 
__________________
Cars: 07 335i ► 08 328i ► 11 328xi ► 13 M3 ► 17 M4 ► 14 M6

Last edited by hl0m4n; 09-29-2011 at 12:42 PM..
Appreciate 0
      09-28-2011, 10:37 PM   #2
SilverII
Colonel
United_States
40
Rep
2,334
Posts

Drives: '11 335IS
Join Date: Jun 2010
Location: DFW

iTrader: (0)

Garage List
2011 BMW 335IS  [9.66]
=if(A4="Add",B1+B4,B1-B4)
Appreciate 0
      09-28-2011, 10:40 PM   #3
BTM
Banned
United_States
483
Rep
10,309
Posts

Drives: A///MERICAN!!!
Join Date: Mar 2010
Location: A///MERICA!!!

iTrader: (11)

Garage List
I believe you can relate the formula with the column you use when you tell data validation which cells to use. I know I've done this with pivot tables before, but mind is fuzzy. I don't remember it being as simple as what was just posted though
Appreciate 0
      09-28-2011, 10:47 PM   #4
///1M
Captain
25
Rep
612
Posts

Drives: On a good day, AW 1M coupe
Join Date: Mar 2011
Location: between Indiana and the alley

iTrader: (0)

Quote:
Originally Posted by SilverII View Post
=if(A4="Add",B1+B4,B1-B4)
^this
Appreciate 0
      09-28-2011, 10:48 PM   #5
BTM
Banned
United_States
483
Rep
10,309
Posts

Drives: A///MERICAN!!!
Join Date: Mar 2010
Location: A///MERICA!!!

iTrader: (11)

Garage List
well fuck, if it is that simple, google has failed me
Appreciate 0
      09-28-2011, 11:57 PM   #6
hl0m4n
Major General
hl0m4n's Avatar
United_States
2159
Rep
5,623
Posts

Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

Quote:
Originally Posted by SilverII View Post
=if(A4="Add",B1+B4,B1-B4)
thanks silver, this worked for me. but how do i also add subtract in that formula so if the subtract is chosen from the drop down it performs subtraction?

with your code right now, if i choose subtract, i get a FALSE in the cell.
__________________
Cars: 07 335i ► 08 328i ► 11 328xi ► 13 M3 ► 17 M4 ► 14 M6
Appreciate 0
      09-29-2011, 09:08 AM   #7
jpsum
Major
jpsum's Avatar
United_States
274
Rep
1,088
Posts

Drives: 2010 TSX
Join Date: Dec 2008
Location: New Haven area

iTrader: (4)

You shouldn't get that error. It's a IF/ELSE function. If A4 does not = Add, then it subtracts.


Or you can do this if you want to be a little more proper: =IF(A4="Add",B1+B4, IF(A4="Subtract",B1-B4))
Attached Images
 

Last edited by jpsum; 09-29-2011 at 09:20 AM..
Appreciate 0
      09-29-2011, 12:23 PM   #8
doubleIN
atlien
doubleIN's Avatar
15
Rep
371
Posts

Drives: '11 e90 335i
Join Date: May 2011
Location: atlanta

iTrader: (0)

Garage List
2011 BMW 335i  [8.50]
dont put a space before the second IF statement though. no spaces after commas
Appreciate 0
      09-29-2011, 12:44 PM   #9
hl0m4n
Major General
hl0m4n's Avatar
United_States
2159
Rep
5,623
Posts

Drives: BMW
Join Date: Nov 2006
Location: NY

iTrader: (58)

thank you very much guys .

quick question though, is the formula different if i wanted to do the entire row as pictured below? when i tried to just drag the box from formula, it wouldn't compute.
Attached Images
 
__________________
Cars: 07 335i ► 08 328i ► 11 328xi ► 13 M3 ► 17 M4 ► 14 M6
Appreciate 0
      09-29-2011, 12:49 PM   #10
Buegie
Captain
Buegie's Avatar
United_States
48
Rep
714
Posts

Drives: 330xi
Join Date: Feb 2008
Location: CT/DC

iTrader: (2)

not exactly sure what you're trying to do but you probably want B1 to be absolute. Put your cursor on it and press F4, then try autofilling again.
__________________
Black Dakota | Aluminum | Sport | Premium | Cold | iDrive | CA
Appreciate 0
      09-29-2011, 01:02 PM   #11
jpsum
Major
jpsum's Avatar
United_States
274
Rep
1,088
Posts

Drives: 2010 TSX
Join Date: Dec 2008
Location: New Haven area

iTrader: (4)

Starting to think you are just trolling us here. But one last help since you are an old member.

Copy what I have in C4 and then just drag and copy the rest of the rows down. The last row (13) is your answer.


This is a very hard way to do a very simple task.
Attached Images
 
Appreciate 0
      09-29-2011, 02:12 PM   #12
BimmerPod
Private First Class
26
Rep
144
Posts

Drives: e92 335i, f85 x5m
Join Date: May 2009
Location: lost

iTrader: (0)

=if(sum'OP'+'Imagination')*(WTF STILL NO PICS OF CHELSEA)

you can thank me later
Appreciate 0
Reply

Bookmarks


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



All times are GMT -5. The time now is 07:35 PM.




e90post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST