在A列中查找内容,然后在excel中显示该行的B值

时间:2018-08-14 14:44:39

标签: excel

我有A,B,C列-我想从A列的B列中搜索值,并显示C的相邻单元格值。

到目前为止,我仍然可以找到该值-但不知道如何显示C的形容词单元格值

 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.par.servicebeacontest">
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />    <application
        android:name=".MyApplicationName"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <!-- Note:  the singleInstance below is important to keep two copies of your activity from getting launched on automatic startup -->
        <activity
            android:name=".RangingActivity"
            android:launchMode="singleInstance">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity android:name=".MyActivity" />
        <activity android:name=".test">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

有人可以帮我做配方奶吗?

1 个答案:

答案 0 :(得分:1)

只需使用VLOOKUP返回值:

=VLOOKUP(B4,$A$4:$C$341, 3, FALSE)

如果要处理可能找不到的事实,则可以使用IFERROR包装:

=IFERROR(VLOOKUP(B4,$A$4:$C$341, 3, FALSE),"Not Found")