Excel multi-condition return value
Array formula:
=IF(SUMPRODUCT((A:A="P349")*(B:B=""))>=1,"",TEXT(MAX((A:A="P349")*B: B),"yyyy-m-d"))
After inputting, do not press Enter directly, press
Ctrl Shift Enter
Finish.
The actual measurement is valid and can automatically determine the value of column B which is P349 in column A.
If it is Excel 2003, please change the formula to:
=IF(SUMPRODUCT((A1:A1000="P349")*(B1:B1000=""))>=1,"",TEXT(MAX((A1:A1000="P349")*B1: B1000),"yyyy-m-d"))
Same as Ctrl Shift Enter to end the formula.
Because Excel 2003 does not support entire column arrays.
If you don’t understand something, you can ask...
excel multi-condition search return value
1
2
3
4
5
6
7
FunctionSpecialSum(Str1 AsString, Val1 AsSingle, Rng1 AsRange)
IfVal1 > WorksheetFunction.VLookup(Str1, Rng1, 3, False) Then
SpecialSum = Val1 * WorksheetFunction.VLookup(Str1, Rng1, 2, False)
Else
SpecialSum = WorksheetFunction.VLookup(Str1, Rng1, 4, False)
EndIf
EndFunction
'Put it into the module and you can use it
Save you the trouble of writing a bunch of formulas
The above is the detailed content of Use Excel to perform multi-criteria searches. For more information, please follow other related articles on the PHP Chinese website!

This article explores various methods for combining text strings, numbers, and dates in Excel using the CONCATENATE function and the "&" operator. We'll cover formulas for joining individual cells, columns, and ranges, offering solutio

This tutorial explores various methods for efficiently merging cells in Excel, focusing on techniques to retain data when combining cells in Excel 365, 2021, 2019, 2016, 2013, 2010, and earlier versions. Often, Excel users need to consolidate two or

This tutorial explores various methods for comparing two or more columns in Excel to identify matches and differences. We'll cover row-by-row comparisons, comparing multiple columns for row matches, finding matches and differences across lists, high

This tutorial explores Excel's rounding functions: ROUND, ROUNDUP, ROUNDDOWN, FLOOR, CEILING, MROUND, and others. It demonstrates how to round decimal numbers to integers or a specific number of decimal places, extract fractional parts, round to the

This tutorial explores various methods for combining Excel sheets, catering to different needs: consolidating data, merging sheets via data copying, or merging spreadsheets based on key columns. Many Excel users face the challenge of merging multipl

This tutorial shows you how to quickly calculate simple moving averages in Excel, using functions to determine moving averages over the last N days, weeks, months, or years, and how to add a moving average trendline to your charts. Previous articles

This tutorial demonstrates various methods for calculating averages in Excel, including formula-based and formula-free approaches, with options for rounding results. Microsoft Excel offers several functions for averaging numerical data, and this gui

This tutorial shows you two simple ways to calculate weighted averages in Excel: using the SUM or SUMPRODUCT function. Previous articles covered basic Excel averaging functions. But what if some values are more important than others, impacting the f


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1
Powerful PHP integrated development environment
