Help with Vlookup formula

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
Still unsure of all the terminology that goes with using this formula and would appreciate assistance.
In the following sheet I want to record any entries paid by Visa in cells H15:H90 and any paid in Cash in Cells I15:I90.
Method of payment is recorded in column B and the amount paid is in columns C:F
You will note I ran into trouble starting with cell H15

I assume VLOOKUP is the formula to use to solve this calculation.

Thanks
Pedro
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
So I assume that for your example H15 would be a sum of C15 and D15, i.e. -$239?

Perhaps in H15 copied down

=IF(B15="Visa",SUM(C15:F15),0)
 
Upvote 0
Thanks Barry that worked well.

I changed the formula by replacing "0" with " "" " to get rid of the $0's in cells where no data entered in column B.
=IF(B15="Visa",SUM(C15:F15),"")
Any problem with this?

Thanks in advance for your response.

Pedro
 
Upvote 0
Excel Workbook
JKLM
2
3METHODAmountVisaCash
4cash240288844
5cash44
6cash105
7visa146
8cash121
9cash94
10visa76
11visa21
12visa45
13cash107
14cash133
15
Sheet1



this works as well
 
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,457
Members
448,898
Latest member
drewmorgan128

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top