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

Hide the ribbon in a worksheet, but not in the template it's based on
Hyperlink based on two dynamic cell values
Excel - Determine if value is contain in named range
Writing excel functions in vba
I need to be able to select columns in Excel by specifying column numbers in vba
How to update a specific row of a table in Excel using Microsoft Graph?
columns' values based on specific rows in pivot table excel
VBA Adding cells from one sheet to another by cell
Searchng a sheet for a value and returning row & column numbers
How to take a control of specific cell of XL?
Vlookup exact text on a cell text string
HTTP GET responds with empty body, downloads excel document in IE
VBA replace comma with line break in word?
Excel online sharing
Change cell value based off of selection from ListBox
How to remove hidden quotes

Categories

HOME
centos
slickgrid
firebase-authentication
automation
junit
sharppcap
q-learning
sublimelinter
android-animation
apache-apex
soundcloud
worksheet-function
crystal-reports-xi
spring-aop
spring4d
batch-normalization
pentaho-spoon
accurev
clang-format
gun
deprecation-warning
bug-tracking
python-datetime
face-api
django-channels
filepicker.io
github-api
formsets
hibernate-criteria
floyd-warshall
fxml
maxlength
omnipay
nexmo
hp-quality-center
post-build-event
appery.io
sequences
hashcode
powerdesigner
toml
data-compression
model-driven
jenkinsfile
ffi
rt
object-oriented-analysis
live-connect-sdk
smartmeter
bisonc++
release-management
zoo
doubly-linked-list
fixed
canonical-link
gm
spock-reports
dotpeek
throttle
stl-format
sos
jquery-widgets
assignment-operator
pysqlite
mpld3
7digital
sin
bitarray
fileapi
sql-agent-job
unique-constraint
cpanm
childviewcontroller
c1flexgrid
kismet-wireless
build-system
jquery-dynatree
usleep
lcm
data-sharing
casbah
nools
kiwi
cxf-client
restriction
kif-framework
intel-galileo
maptiler
interlacing
yepnope
android-3.0-honeycomb
postfix-operator
imagecreatefrompng
payflowlink
ldapconnection
circusd
dotfuscator
nsinteger
getprocaddress
.lrc
looper
single-user
windows-explorer
entityreference
httpverbs
sqlmetal
maintaining-code

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile