EXCEL: If/Then Functions
Jun. 7th, 2009 04:50 pmOkay, I'm trying to figure out If/Then functions in Excel, and since the syntax is different from what I learned back in my basic programming days I need a bit of help.
What I want to do is to determine something like this:
If B4>14 and B5>15 and B6>13 then multiply F2 by 1.1 else just return the value of F2. Anyone know how I would do this and make it work in Excel?
What I want to do is to determine something like this:
If B4>14 and B5>15 and B6>13 then multiply F2 by 1.1 else just return the value of F2. Anyone know how I would do this and make it work in Excel?
no subject
Date: 2009-06-08 03:18 am (UTC)=IF((AND(B4>14,B5>15,B6>13)),F2*1.1,F2)
Checking the formula
I tried this using the value of 10 in cell F2. I then put 15, 20, and 25 in cells B4, B5 and B6 (respectively). The resulting value from the formula was 11 (10*1.1). When I changed one of the values in the range B4:B6 so it did not meet the criteria, I got the expected result of 10 (the value we have in F2).
Let me know if this helps. :)
You rock...
Date: 2009-06-08 03:36 am (UTC)Re: You rock...
Date: 2009-06-08 04:00 pm (UTC)Re: You rock...
Date: 2009-06-08 04:41 pm (UTC)When we developed the RPG Artistry we had a combat resolution setup using Excel to look up data from tables and get them to drop the results into the front sheet of a workbook, so it is something that I've toyed with before. Excel is wonderful for making tables and form headers for documents (I never use table functions in Word, instead just building the form header in Excel and then copying it into Word) so I was comfortable keeping my data in a spreadsheet. And now that I'm enjoying a spate of visionlessness, (one I hope to get out of at some point) Excel makes it ever more handy because one cell contains one cell worth of data, while documents have data in lines that tend to make tables of info blur together. It's easier to just port things into Excel. So I'm using it a lot.