excel


Does excel have an if statement equivelent? I can't get this program to work


The program has 5 columns.
Column A has item names
Column B has item sizes
Column C has item quantities
Column D has items that i need
Column E has the sizes for those items in the rows corresponding to the items
Most items do not have multiple sizes, but for the ones that do, there will be multiple entries of that item in column A.
What I need to do is take all the items from column D and find them in column A and give me the corresponding quantity from C.
I have been using this code to achieve this. =INDEX(C:C,MATCH(D:D,A:A,0))
This works for all items besides the ones with multiple sizes. For these items it just spits back the first size number every time.
Would there be a way to match A and D, and then check if there is a value in the size column, if so, give out the correct number?
I see how my wording is confusing here is an example of what I mean.
apples 5lb bag 12 apples 10lb bag
apples 10lb bag 13
bananas 5 grapes
grapes 7
Which using the is line of code "=INDEX(C:C,MATCH(D:D,A:A,0)) " would result in giving me the correct "7" for the grapes, but for the apples, it would give me the first result it comes across, which is the 12.
How would I get it to check the other columns to give me the 13 for apples?
If I understand correctly then this will get you the correct number:
=IF(E2<>"",SUMIFS(C:C,A:A,D2,B:B,E2),SUMIFS(C:C,A:A,D2))

Related Links

Excel: Returning Value from third column if three match
Titus add-on won't allow me to save to PERSONAL.XLSB
change color of tab on sheets in a workbook based on date
Keep cell constant Excel
How to find cell containing string in entire worksheet
Use Excel VBA to reference add-in ribbon tool
Icon sets showing trend and number in same cell
VBA change cell value to run another macro
Save a number of excel worksheets as a PDF
How to edit column width of an Excel report which was created by an Access query?
i have a routine that saves specified sheets in a workbook to a pdf doc but if i make some of the sheets charts my routine falls over
Excel count distinct values in a date range by values
Excel, how to return a specific row from a data set
Count something based on another column
Nested macros not looping
Excel clipping data off long number before I can format it correctly

Categories

HOME
github
phpunit
properties
soap
dependent-type
set
google-speech-api
wolfram-mathematica
dropzone.js
conditional
mariadb
axis2
asp.net-web-api2
jestjs
datepicker
executable-jar
watchkit
conv-neural-network
google-fusion-tables
accelerometer
packet-capture
cookie-session
endpoints-proto-datastore
github-api
atom-feed
jquery-chosen
python-tesseract
ggiraph
vim-syntax-highlighting
grunt-connect-proxy
gulp-4
get-eventlog
magnolia
free-jqgrid
web.py
android-runonuithread
data-compression
oracle-ebs
devexpress-wpf
model-driven
sencha-architect
google-console-developer
khan-academy
ffi
api-manager
exports-loader
orika
javassist
coupling
django-media
opensmtpd
smartmeter
release-management
unicorn
video-recording
nibble
highcharts-ng
cts
r1soft
sparklines
rebase
mindbody
max-heap
opcode
jseparator
distinct-on
msbuildcommunitytasks
spatialite
moovweb
ncbi
treenode
geographical-information
google-text-to-speech
filefield
appcompat-v7-r22.1
typescript1.4
usleep
lcm
dav
kif-framework
usermode
avassetwriter
fluent-security
graphml
jnetpcap
nsformatter
django-generic-views
winqual
libjson
moss2007enterprisesearch
urldecode
microsoft.build
comdlg32

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile